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/dagwieers/vmguestlib/GetMemTargetSizeMB
LDU_FT
[ "<BEGIN>\n## `OpenHandle`", "Gets a handle for use with other vSphere Guest API functions. The guest library\n handle provides a context for accessing information about the virtual machine.", " Virtual machine statistics and state data are associated with a particular guest library\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the GetMemTargetSizeMB 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 GetMemTargetSizeMB 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...
Retrieves the size of the target memory allocation for this virtual machine.
"Retrieves the size of the target memory allocation for this virtual machine."
50
false
dagwieers/vmguestlib
GetMemTargetSizeMB
24,773
LDU_FT/cole/aiosmtplib/_extract_recipients
LDU_FT
[ "<BEGIN>\n## `connection_made`", "Modified ``connection_made`` that supports upgrading our transport in\n place using STARTTLS.", " We set the _transport directly on the StreamReader, rather than calling\n set_transport (which will raise an AssertionError on upgrade).\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _extract_recipients 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 _extract_recipients 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...
Extract the recipients from the message object given.
"Extract the recipients from the message object given."
142
false
cole/aiosmtplib
_extract_recipients
24,774
LDU_FT/tBaxter/tango-comments/allow
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 allow API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the allow API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Determine whether a given comment is allowed to be posted on a given object. Return ``True`` if the comment should be allowed, ``False otherwise.
"Determine whether a given comment is allowed to be posted on\n a given object.\n\n Return ``True`` if the comment should be allowed, ``False\n otherwise."
66
false
tBaxter/tango-comments
allow
24,775
LDU_FT/samuraisam/pyapns/xmlrpc_notify
LDU_FT
[ "<BEGIN>\n## `encode_notifications`", "Returns the encoded bytes of tokens and notifications", " tokens a list of tokens or a string of only one token\n notifications a list of notifications or a dictionary of only one\n<END>", "<BEGIN>\n## `decode_feedback`", "Returns a list of tup...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the xmlrpc_notify API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the xmlrpc_notify API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Sends push notifications to the Apple APNS server. Multiple notifications can be sent by sending pairing the token/notification arguments in lists [token1, token2], [notification1, notification2]. Arguments: app_id provisioned app_id to send to token_or_token_list ...
"Sends push notifications to the Apple APNS server. Multiple \n notifications can be sent by sending pairing the token/notification\n arguments in lists [token1, token2], [notification1, notification2].\n \n Arguments:\n app_id provisioned app_id to send to\n token_or_toke...
21
false
samuraisam/pyapns
xmlrpc_notify
24,776
LDU_FT/luqasz/librouteros/connect
LDU_FT
[ "<BEGIN>\n## `connect`", "Connect and login to routeros device.\n Upon success return a Api class.", " :param host: Hostname to connecto to. May be ipv4,ipv6,FQDN.\n :param username: Username to login with.\n :param password: Password to login with. Only ASCII characters allowed.\n :param timeout...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect API. 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 connect API. 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...
Connect and login to routeros device. Upon success return a Api class. :param host: Hostname to connecto to. May be ipv4,ipv6,FQDN. :param username: Username to login with. :param password: Password to login with. Only ASCII characters allowed. :param timeout: Socket timeout. Defaults to 10. :p...
"Connect and login to routeros device.\n Upon success return a Api class.\n\n :param host: Hostname to connecto to. May be ipv4,ipv6,FQDN.\n :param username: Username to login with.\n :param password: Password to login with. Only ASCII characters allowed.\n :param timeout: Socket timeout. Defaults to 10....
40
false
luqasz/librouteros
connect
24,777
LDU_FT/OpenTreeOfLife/peyotl/_python_instance_to_nexml_meta_datatype
LDU_FT
[ "<BEGIN>\n## `write_taxon_info`", "Writes out data from `taxon` to the `output` stream to demonstrate\n the attributes of a taxon object.\n (currently some lines are commented out until the web-services call returns more info. See:\n https://github.com/OpenTreeOfLife/taxomachine/issues/85\n ).\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _python_instance_to_nexml_meta_datatype API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicate...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _python_instance_to_nexml_meta_datatype API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicate...
Returns 'xsd:string' or a more specific type for a <meta datatype="XYZ"... syntax using introspection.
"Returns 'xsd:string' or a more specific type for a <meta datatype=\"XYZ\"...\n syntax using introspection."
456
false
OpenTreeOfLife/peyotl
_python_instance_to_nexml_meta_datatype
24,778
LDU_FT/LeKono/pyhgnc/_limit_and_df
LDU_FT
[ "<BEGIN>\n## `get_many2many_table`", "Creates a many-to-many table that links the given tables table1 and table2.", " :param str table1: Tablename of left hand table without TABLE_PREFIX.\n :param str table2: Tablename of right hand table without TABLE_PREFIX.\n :return:\n<END>", "<BEGIN>\n## `_limit...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _limit_and_df API. 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 _limit_and_df API. 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...
adds a limit (limit==None := no limit) to any query and allow a return as pandas.DataFrame :param bool as_df: if is set to True results return as pandas.DataFrame :param `sqlalchemy.orm.query.Query` query: SQL Alchemy query :param int,tuple limit: maximum number of results :return: quer...
"adds a limit (limit==None := no limit) to any query and allow a return as pandas.DataFrame\n\n :param bool as_df: if is set to True results return as pandas.DataFrame\n :param `sqlalchemy.orm.query.Query` query: SQL Alchemy query\n :param int,tuple limit: maximum number of results\n :return...
248
false
LeKono/pyhgnc
_limit_and_df
24,779
LDU_FT/mbr/tinyrpc/handle
LDU_FT
[ "<BEGIN>\n## `error_respond`", "Converts the error to an error response object.", " :return: An error response object ready to be serialized and sent to the client.\n :rtype: :py:class:`JSONRPCErrorResponse`\n<END>", "<BEGIN>\n## `error_respond`", "Create an error response to this request.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle API. 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 handle API. 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 ...
WSGI handler function. The transport will serve a request by reading the message and putting it into an internal buffer. It will then block until another concurrently running function sends a reply using :py:meth:`send_reply`. The reply will then be sent to the client being handled and...
"WSGI handler function.\n\n The transport will serve a request by reading the message and putting\n it into an internal buffer. It will then block until another\n concurrently running function sends a reply using :py:meth:`send_reply`.\n\n The reply will then be sent to the client being hand...
120
false
mbr/tinyrpc
handle
24,780
LDU_FT/nion-software/nionswift/mask_xdata_with_shape
LDU_FT
[ "<BEGIN>\n## `get_string`", "Return a string value that the user enters. Raises exception for cancel.\n<END>", "<BEGIN>\n## `__accept_reject`", "Return a boolean value for accept/reject.\n<END>", "<BEGIN>\n## `item_transaction`", "Begin transaction state for item.", " A transaction state is exist...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mask_xdata_with_shape 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 mask_xdata_with_shape API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Return the mask created by this graphic as extended data. .. versionadded:: 1.0 Scriptable: Yes
"Return the mask created by this graphic as extended data.\n\n .. versionadded:: 1.0\n\n Scriptable: Yes"
690
false
nion-software/nionswift
mask_xdata_with_shape
24,781
LDU_FT/Knoema/knoema-python-driver/save_to_json
LDU_FT
[ "<BEGIN>\n## `is_equal_strings_ignore_case`", "The function compares strings ignoring case\n<END>", "<BEGIN>\n## `find_dimension_by_name`", "the method searching dimension with a given name\n<END>", "<BEGIN>\n## `find_dimension_by_id`", "the method searching dimension with a given id\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_to_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_to_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
The method saves DatasetUpload to json from object
"The method saves DatasetUpload to json from object"
48
false
Knoema/knoema-python-driver
save_to_json
24,782
LDU_FT/matthias-k/cyipopt/html_output_graph
LDU_FT
[ "<BEGIN>\n## `pkgconfig`", "Based on http://code.activestate.com/recipes/502261-python-distutils-pkg-config/#c2\n<END>", "<BEGIN>\n## `inheritance_diagram_directive`", "Run when the inheritance_diagram directive is first encountered.\n<END>", "<BEGIN>\n## `html_output_graph`", "Output the graph for HTML. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the html_output_graph API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the html_output_graph API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Output the graph for HTML. This will insert a PNG with clickable image map.
"Output the graph for HTML. This will insert a PNG with clickable\n image map."
28
false
matthias-k/cyipopt
html_output_graph
24,783
LDU_FT/pr-omethe-us/PyKED/get_ignition_type
LDU_FT
[ "<BEGIN>\n## `search_orcid`", "Search the ORCID public API", " Specfically, return a dictionary with the personal details\n (name, etc.) of the person associated with the given ORCID", " Args:\n orcid (`str`): The ORCID to be searched", " Returns:\n `dict`: Dictionary with the JSON...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_ignition_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_ignition_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Gets ignition type and target. Args: root (`~xml.etree.ElementTree.Element`): Root of ReSpecTh XML file Returns: properties (`dict`): Dictionary with ignition type/target information
"Gets ignition type and target.\n\n Args:\n root (`~xml.etree.ElementTree.Element`): Root of ReSpecTh XML file\n\n Returns:\n properties (`dict`): Dictionary with ignition type/target information"
124
false
pr-omethe-us/PyKED
get_ignition_type
24,784
LDU_FT/commonsense/metanl/is_stopword
LDU_FT
[ "<BEGIN>\n## `unicode_is_punctuation`", "Test if a token is made entirely of Unicode characters of the following\n classes:", " - P: punctuation\n - S: symbols\n - Z: separators\n - M: combining marks\n - C: control characters", " >>> unicode_is_punctuation('word')\n False\n >>> uni...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_stopword API. 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 is_stopword API. 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...
Determine whether a single word is a stopword, or whether a short phrase is made entirely of stopwords, disregarding context. Use of this function should be avoided; it's better to give the text in context and let the process determine which words are the stopwords.
"Determine whether a single word is a stopword, or whether a short\n phrase is made entirely of stopwords, disregarding context.\n\n Use of this function should be avoided; it's better to give the text\n in context and let the process determine which words are the stopwords."
70
false
commonsense/metanl
is_stopword
24,785
LDU_FT/Robpol86/etaprogress/str_eta
LDU_FT
[ "<BEGIN>\n## `terminal_width`", "Returns the terminal's width (number of character columns).\n<END>", "<BEGIN>\n## `get_remaining_width`", "Returns the number of characters available if sample string were to be printed in the terminal.", " Positional arguments:\n sample_string -- gets the length of th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the str_eta API. 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 str_eta API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Returns a formatted ETA value for the progress bar.
"Returns a formatted ETA value for the progress bar."
76
false
Robpol86/etaprogress
str_eta
24,786
LDU_FT/matthew-sochor/transfer/float_input
LDU_FT
[ "<BEGIN>\n## `int_input`", "Ask a user for a int input between two values", " args:\n message (str): Prompt for user\n low (int): Low value, user entered value must be > this value to be accepted\n high (int): High value, user entered value must be < this value to be accepted\n sh...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the float_input API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the float_input API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Ask a user for a float input between two values args: message (str): Prompt for user low (float): Low value, user entered value must be > this value to be accepted high (float): High value, user entered value must be < this value to be accepted returns: float_in (int): Input fl...
"Ask a user for a float input between two values\n\n args:\n message (str): Prompt for user\n low (float): Low value, user entered value must be > this value to be accepted\n high (float): High value, user entered value must be < this value to be accepted\n\n returns:\n float_in (int):...
29
false
matthew-sochor/transfer
float_input
24,787
LDU_FT/camsci/meteor-pi/type
LDU_FT
[ "<BEGIN>\n## `connect`", "Connect to a host on a given port.\n If the hostname ends with a colon (`:') followed by a number, and\n there is no port specified, that suffix will be stripped off and the\n number interpreted as the port number to use.\n<END>", "<BEGIN>\n## `waiting`", "Return...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Returns 'number', 'string', 'date' or 'unknown' based on the type of the value
"Returns 'number', 'string', 'date' or 'unknown' based on the type of the value"
210
false
camsci/meteor-pi
type
24,788
LDU_FT/sashs/filebytes/_parseSections
LDU_FT
[ "<BEGIN>\n## `isSupportedContent`", "Returns if the files are valid for this filetype\n<END>", "<BEGIN>\n## `__parseKeyValueStore`", "Returns a dictionary filled with the keys and values of the key value store\n<END>", "<BEGIN>\n## `to_raw_address`", "Converts the addr from a rva to a pointer to raw data ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parseSections API. 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 _parseSections API. 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...
Parses the sections in the memory and returns a list of them
"Parses the sections in the memory and returns a list of them"
28
false
sashs/filebytes
_parseSections
24,789
LDU_FT/Pajinek/vhm/creatauth
LDU_FT
[ "<BEGIN>\n## `create_user_profile`", "Create the UserProfile when a new User is saved\n<END>", "<BEGIN>\n## `startOpenID`", "Start the OpenID authentication process. Renders an\n authentication form and accepts its POST.", " * Renders an error message if OpenID cannot be initiated", " * Requests...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the creatauth API. 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 creatauth API. 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...
Function create user in linux for group and set homedir. Function return gid and uid.
"Function create user in linux for group and set homedir. Function return gid and uid."
16
false
Pajinek/vhm
creatauth
24,790
LDU_FT/user-cont/colin/search
LDU_FT
[ "<BEGIN>\n## `run`", "Runs the sanity checks for the target.", " :param timeout: timeout per-check (in seconds)\n :param skips: name of checks to skip\n :param target: str (image name, ostree or dockertar)\n or ImageTarget\n or path/file-like object for dockerfile\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Search node with given name based on regexp, basic method (find) uses equality
"Search node with given name based on regexp, basic method (find) uses equality"
114
false
user-cont/colin
search
24,791
LDU_FT/outini/python-pylls/create
LDU_FT
[ "<BEGIN>\n## `request`", "Handle requests to API", " :param str path: API endpoint's path to request\n :param str method: HTTP method to use\n :param dict data: Data to send (optional)\n :return: Parsed json response as :class:`dict`", " Additional named argument may be pass...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. 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 create API. 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 ...
Create a new component :param str name: Name of the component :param int status: Status of the component; 1-4 :param str description: Description of the component (optional) :param str link: A hyperlink to the component (optional) :param int order: Order of the component (option...
"Create a new component\n\n :param str name: Name of the component\n :param int status: Status of the component; 1-4\n :param str description: Description of the component (optional)\n :param str link: A hyperlink to the component (optional)\n :param int order: Order of the component ...
71
false
outini/python-pylls
create
24,792
LDU_FT/SystemRDL/systemrdl-compiler/define_udp
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 define_udp API. 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 define_udp API. 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...
Pre-define a user-defined property. This is the equivalent to the following RDL: .. code-block:: none property <name> { type = <valid_type>; component = <valid_components>; default = <default> }; Parameters -----...
"Pre-define a user-defined property.\n\n This is the equivalent to the following RDL:\n\n .. code-block:: none\n\n property <name> {\n type = <valid_type>;\n component = <valid_components>;\n default = <default>\n };\n\n Parameters\...
207
false
SystemRDL/systemrdl-compiler
define_udp
24,793
LDU_FT/spacetelescope/drizzlepac/fit_all
LDU_FT
[ "<BEGIN>\n## `check_and_get_data`", "Verify that all specified files are present. If not, retrieve them from MAST.", " Parameters\n ----------\n input_list : list\n List of one or more calibrated fits images that will be used for catalog generation.", " Returns\n =======\n total_input...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit_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 extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit_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 extracted...
Performs an 'rscale' fit between matched lists of pixel positions xy and uv
"Performs an 'rscale' fit between matched lists of pixel positions xy and uv"
1,138
true
spacetelescope/drizzlepac
fit_all
24,794
LDU_FT/ambitioninc/newrelic-api/delete
LDU_FT
[ "<BEGIN>\n## `update`", "Updates any of the optional parameters of the alert condition nrql", " :type alert_condition_nrql_id: int\n :param alert_condition_nrql_id: Alerts condition NRQL id to update", " :type policy_id: int\n :param policy_id: Alert policy id where target alert co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. 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 delete API. 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 API endpoint allows you to delete an alert condition :type alert_condition_id: integer :param alert_condition_id: Alert Condition ID :rtype: dict :return: The JSON response of the API :: { "condition": { "id": "integer", ...
"This API endpoint allows you to delete an alert condition\n\n :type alert_condition_id: integer\n :param alert_condition_id: Alert Condition ID\n\n :rtype: dict\n :return: The JSON response of the API\n\n ::\n\n {\n \"condition\": {\n \"id...
299
false
ambitioninc/newrelic-api
delete
24,795
LDU_FT/FNNDSC/med2image/toc
LDU_FT
[ "<BEGIN>\n## `verbosity`", "get/set the verbosity level.", " The verbosity level filters messages that are output\n to the console. Only messages tagged with a verbosity\n less-than-or-equal-to the class verbosity are output.", " This does not affect output to non-console devices\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the toc API. 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 toc API. 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...
Port of the MatLAB function of same name Behaviour is controllable to some extent by the keyword args:
"Port of the MatLAB function of same name\n\n Behaviour is controllable to some extent by the keyword\n args:"
131
false
FNNDSC/med2image
toc
24,796
LDU_FT/balloob/pychromecast/_process_launch_error
LDU_FT
[ "<BEGIN>\n## `new_connection_status`", "Handle reception of a new ConnectionStatus.\n<END>", "<BEGIN>\n## `register_listener`", "Register a listener for audio group changes of cast uuid.\n On update will call:\n listener.added_to_multizone(group_uuid)\n The cast has been a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process_launch_error API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process_launch_error API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Processes a received LAUNCH_ERROR message and notifies listeners.
"Processes a received LAUNCH_ERROR message and notifies listeners."
145
false
balloob/pychromecast
_process_launch_error
24,797
LDU_FT/jmoiron/humanize/naturaldelta
LDU_FT
[ "<BEGIN>\n## `abs_timedelta`", "Returns an \"absolute\" value for a timedelta, always representing a\n time distance.\n<END>", "<BEGIN>\n## `date_and_delta`", "Turn a value into a date and a timedelta which represents how long ago\n it was. If that's not possible, return (None, value).\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the naturaldelta API. 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 naturaldelta API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Given a timedelta or a number of seconds, return a natural representation of the amount of time elapsed. This is similar to ``naturaltime``, but does not add tense to the result. If ``months`` is True, then a number of months (based on 30.5 days) will be used for fuzziness between years.
"Given a timedelta or a number of seconds, return a natural\n representation of the amount of time elapsed. This is similar to\n ``naturaltime``, but does not add tense to the result. If ``months``\n is True, then a number of months (based on 30.5 days) will be used\n for fuzziness between years."
28
false
jmoiron/humanize
naturaldelta
24,798
LDU_FT/bitlabstudio/django-development-fabfile/run_pip_install
LDU_FT
[ "<BEGIN>\n## `require_server`", "Checks if the user has called the task with a server name.", " Fabric tasks decorated with this decorator must be called like so::", " fab <server name> <task name>", " If no server name is given, the task will not be executed.\n<END>", "<BEGIN>\n## `run_deplo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_pip_install API. 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 run_pip_install API. 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...
Installs the requirement.txt file on the given server. Usage:: fab <server> run_pip_install fab <server> run_pip_install:upgrade=1 :param upgrade: If set to 1, the command will be executed with the ``--upgrade`` flag.
"Installs the requirement.txt file on the given server.\n\n Usage::\n\n fab <server> run_pip_install\n fab <server> run_pip_install:upgrade=1\n\n :param upgrade: If set to 1, the command will be executed with the\n ``--upgrade`` flag."
77
false
bitlabstudio/django-development-fabfile
run_pip_install
24,799
LDU_FT/OCHA-DAP/hdx-python-utilities/list_distribute_contents_simple
LDU_FT
[ "<BEGIN>\n## `raisefrom`", "Call Python 3 raise from or emulate it for Python 2", " Args:\n exc_type (Any): Type of Exception\n message (str): Error message to display\n exc (BaseException): original exception", " Returns:\n None\n<END>", "<BEGIN>\n## `get_session`", "Set...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_distribute_contents_simple API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_distribute_contents_simple API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
Distribute the contents of a list eg. [1, 1, 1, 2, 2, 3] -> [1, 2, 3, 1, 2, 1]. List can contain complex types like dictionaries in which case the function can return the appropriate value eg. lambda x: x[KEY] Args: input_list (List): List to distribute values function (Callable[[Any], Any]): ...
"Distribute the contents of a list eg. [1, 1, 1, 2, 2, 3] -> [1, 2, 3, 1, 2, 1]. List can contain complex types\n like dictionaries in which case the function can return the appropriate value eg. lambda x: x[KEY]\n\n Args:\n input_list (List): List to distribute values\n function (Callable[[Any], A...
232
false
OCHA-DAP/hdx-python-utilities
list_distribute_contents_simple
24,800
LDU_FT/mkoura/dump2polarion/only_passed_and_wait
LDU_FT
[ "<BEGIN>\n## `only_passed_and_wait`", "Returns PASS and WAIT results only, skips everything else.\n<END>", "<BEGIN>\n## `insert_source_info`", "Adds info about source of test result if available.\n<END>", "<BEGIN>\n## `setup_parametrization`", "Modifies result's data according to the parametrization setti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the only_passed_and_wait 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 only_passed_and_wait 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 PASS and WAIT results only, skips everything else.
"Returns PASS and WAIT results only, skips everything else."
107
false
mkoura/dump2polarion
only_passed_and_wait
24,801
LDU_FT/splunk/splunk-sdk-python/output_results
LDU_FT
[ "<BEGIN>\n## `dispatch`", "Instantiates and executes a search command class", " This function implements a `conditional script stanza <https://docs.python.org/2/library/__main__.html>`_ based on the value of\n :code:`module_name`::", " if module_name is None or module_name == '__main__':\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the output_results API. 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 output_results API. 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...
Given a list of dictionaries, each representing a single result, and an optional list of fields, output those results to stdout for consumption by the Splunk pipeline
"Given a list of dictionaries, each representing\n a single result, and an optional list of fields,\n output those results to stdout for consumption by the\n Splunk pipeline"
747
false
splunk/splunk-sdk-python
output_results
24,802
LDU_FT/EnigmaBridge/client.py/set_flags
LDU_FT
[ "<BEGIN>\n## `to_bytes`", "Converts input to a byte string.\n Typically used in PyCrypto as an argument (e.g., key, iv)", " :param x: string (does nothing), bytearray, array with numbers\n :return:\n<END>", "<BEGIN>\n## `to_long`", "Converts input to a long number (arbitrary precision python long)\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_flags API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_flags API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Set flags representing generation way accordingly - commkeys are client generated, app key is server generated. :return:
"Set flags representing generation way accordingly - commkeys are client generated, app key is server generated.\n :return:"
107
false
EnigmaBridge/client.py
set_flags
24,803
LDU_FT/azavea/django-tinsel/username_matches_request_user
LDU_FT
[ "<BEGIN>\n## `route`", "Route a request to different views based on http verb.", " Kwargs should be 'GET', 'POST', 'PUT', 'DELETE' or 'ELSE',\n where the first four map to a view to route to for that type of\n request method/verb, and 'ELSE' maps to a view to pass the request\n to if the given reque...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the username_matches_request_user API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the username_matches_request_user API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Checks if the username matches the request user, and if so replaces username with the actual user object. Returns 404 if the username does not exist, and 403 if it doesn't match.
"Checks if the username matches the request user, and if so replaces\n username with the actual user object.\n Returns 404 if the username does not exist, and 403 if it doesn't match."
21
false
azavea/django-tinsel
username_matches_request_user
24,804
LDU_FT/moonlitesolutions/SolrClient/copy_config
LDU_FT
[ "<BEGIN>\n## `get_ngroups`", "Returns ngroups count if it was specified in the query, otherwise ValueError.", " If grouping on more than one field, provide the field argument to specify which count you are looking for.\n<END>", "<BEGIN>\n## `get_groups_count`", "Returns 'matches' from group response....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Copies collection configs into a new folder. Can be used to create new collections based on existing configs. Basically, copies all nodes under /configs/original to /configs/new. :param original str: ZK name of original config :param new str: New name of the ZK config.
"Copies collection configs into a new folder. Can be used to create new collections based on existing configs. \n\n Basically, copies all nodes under /configs/original to /configs/new.\n\n :param original str: ZK name of original config\n :param new str: New name of the ZK config."
182
false
moonlitesolutions/SolrClient
copy_config
24,805
LDU_FT/driftx/Telephus/my_pick_non_system_keyspace
LDU_FT
[ "<BEGIN>\n## `set_keyspace`", "switch all connections to another keyspace\n<END>", "<BEGIN>\n## `retry`", "Retry this factory's connection. It is assumed that a previous\n connection was attempted and failed- either before or after a\n successful connection.\n<END>", "<BEGIN>\n## `prep_connect...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the my_pick_non_system_keyspace API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the my_pick_non_system_keyspace API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Find a keyspace in the cluster which is not 'system', for the purpose of getting a valid ring view. Can't use 'system' or null.
"Find a keyspace in the cluster which is not 'system', for the purpose\n of getting a valid ring view. Can't use 'system' or null."
132
false
driftx/Telephus
my_pick_non_system_keyspace
24,806
LDU_FT/Apitax/Apitax/save_driver_script
LDU_FT
[ "<BEGIN>\n## `get_driver_blacklist`", "Retrieve the blacklist in the driver", " Retrieve the blacklist in the driver # noqa: E501", " :param driver: The driver to use for the request. ie. github\n :type driver: str", " :rtype: Response\n<END>", "<BEGIN>\n## `get_driver_config`", "Retrieve th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_driver_script 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 save_driver_script 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...
Save a script Save a script # noqa: E501 :param driver: The driver to use for the request. ie. github :type driver: str :param script_save: The data needed to save this script :type script_save: dict | bytes :rtype: Response
"Save a script\n\n Save a script # noqa: E501\n\n :param driver: The driver to use for the request. ie. github\n :type driver: str\n :param script_save: The data needed to save this script\n :type script_save: dict | bytes\n\n :rtype: Response"
137
false
Apitax/Apitax
save_driver_script
24,807
LDU_FT/jic-dtool/dtool-irods/list_dataset_uris
LDU_FT
[ "<BEGIN>\n## `_put_obj`", "Put python object into iRODS as JSON text.\n<END>", "<BEGIN>\n## `list_dataset_uris`", "Return list containing URIs in base_uri.\n<END>", "<BEGIN>\n## `get_item_abspath`", "Return absolute path at which item content can be accessed.", " :param identifier: item identifie...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_dataset_uris API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_dataset_uris API. 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 list containing URIs in base_uri.
"Return list containing URIs in base_uri."
23
false
jic-dtool/dtool-irods
list_dataset_uris
24,808
LDU_FT/honzamach/pynspect/traverse
LDU_FT
[ "<BEGIN>\n## `parse`", "Parse given data.", " data:\n A string containing the filter definition\n filename:\n Name of the file being parsed (for meaningful\n error messages)\n debuglevel:\n Debug level to yacc\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the traverse API. 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 traverse API. 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...
Implementation of mandatory interface for traversing the whole rule tree. This method will call the ``traverse`` method of child rule tree and then perform arbitrary conversion of the result before returning it back. The optional ``kwargs`` are passed down to traverser callback as additional ...
"Implementation of mandatory interface for traversing the whole rule tree.\n This method will call the ``traverse`` method of child rule tree and\n then perform arbitrary conversion of the result before returning it back.\n The optional ``kwargs`` are passed down to traverser callback as additional...
143
false
honzamach/pynspect
traverse
24,809
LDU_FT/korfuri/django-prometheus/SetupPrometheusEndpointOnPortRange
LDU_FT
[ "<BEGIN>\n## `ExportMigrations`", "Exports counts of unapplied migrations.", " This is meant to be called during app startup, ideally by\n django_prometheus.apps.AppConfig.\n<END>", "<BEGIN>\n## `ExportingCursorWrapper`", "Returns a CursorWrapper class that knows its database's alias and\n vendor n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the SetupPrometheusEndpointOnPortRange API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the SetupPrometheusEndpointOnPortRange API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its...
Like SetupPrometheusEndpointOnPort, but tries several ports. This is useful when you're running Django as a WSGI application with multiple processes and you want Prometheus to discover all workers. Each worker will grab a port and you can use Prometheus to aggregate across workers. port_range may ...
"Like SetupPrometheusEndpointOnPort, but tries several ports.\n\n This is useful when you're running Django as a WSGI application\n with multiple processes and you want Prometheus to discover all\n workers. Each worker will grab a port and you can use Prometheus\n to aggregate across workers.\n\n port_ra...
25
false
korfuri/django-prometheus
SetupPrometheusEndpointOnPortRange
24,810
LDU_FT/poldracklab/niworkflows/demean
LDU_FT
[ "<BEGIN>\n## `spike_regressors`", "Add spike regressors to a confound/nuisance matrix.", " Parameters\n ----------\n data: pandas DataFrame object\n A tabulation of observations from which spike regressors should be\n estimated.\n criteria: dict{str: ('>' or '<', float)}\n Crite...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the demean API. 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 demean API. 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 ...
Demean ``in_file`` within the mask defined by ``in_mask``
"Demean ``in_file`` within the mask defined by ``in_mask``"
305
false
poldracklab/niworkflows
demean
24,811
LDU_FT/jorbas/GADDAG/load
LDU_FT
[ "<BEGIN>\n## `save`", "Save the GADDAG to file.", " Args:\n path: path to save the GADDAG to.\n compressed: compress the saved GADDAG using gzip.\n exist_ok: overwrite existing file at `path`.\n<END>", "<BEGIN>\n## `load`", "Load a GADDAG from file, replacing the word...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Load a GADDAG from file, replacing the words currently in this GADDAG. Args: path: path to saved GADDAG to be loaded.
"Load a GADDAG from file, replacing the words currently in this GADDAG.\n\n Args:\n path: path to saved GADDAG to be loaded."
29
false
jorbas/GADDAG
load
24,812
LDU_FT/urbn/Caesium/default
LDU_FT
[ "<BEGIN>\n## `load_json`", "Load JSON from the request body and store them in\n self.request.arguments, like Tornado does by default for POSTed form\n parameters.", " If JSON cannot be decoded", " :raises ValueError: JSON Could not be decoded\n<END>", "<BEGIN>\n## `get_json_argum...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default API. 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 default API. 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...
Handles the adapting of special types from mongo
"Handles the adapting of special types from mongo"
157
false
urbn/Caesium
default
24,813
LDU_FT/mattrobenolt/django-sudo/revoke_sudo_privileges
LDU_FT
[ "<BEGIN>\n## `redirect_to_sudo`", "Redirects the user to the login page, passing the given 'next' page\n<END>", "<BEGIN>\n## `sudo_required`", "Enforces a view to have elevated privileges.\n Should likely be paired with ``@login_required``.", " >>> @sudo_required\n >>> def secure_page(request):\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the revoke_sudo_privileges 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 revoke_sudo_privileges API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Revoke sudo privileges from a request explicitly
"Revoke sudo privileges from a request explicitly"
13
false
mattrobenolt/django-sudo
revoke_sudo_privileges
24,814
LDU_FT/gregmuellegger/django-autofixture/check_constraints
LDU_FT
[ "<BEGIN>\n## `register`", "Register a model with the registry.", " Arguments:", " *model* can be either a model class or a string that contains the model's\n app label and class name seperated by a dot, e.g. ``\"app.ModelClass\"``.", " *autofixture* is the :mod:`AutoFixture` subclass...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_constraints API. 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 check_constraints API. 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 fieldnames which need recalculation.
"Return fieldnames which need recalculation."
46
false
gregmuellegger/django-autofixture
check_constraints
24,815
LDU_FT/OLC-Bioinformatics/ConFindr/read_mash_output
LDU_FT
[ "<BEGIN>\n## `bbduk_trim`", "Wrapper for using bbduk to quality trim reads. Contains arguments used in OLC Assembly Pipeline, but these can\n be overwritten by using keyword parameters.\n :param forward_in: Forward reads you want to quality trim.\n :param returncmd: If set to true, function will return t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_mash_output API. 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 read_mash_output API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
:param result_file: Tab-delimited result file generated by mash dist. :return: mash_results: A list with each entry in the result file as an entry, with attributes reference, query, distance, pvalue, and matching_hash
":param result_file: Tab-delimited result file generated by mash dist.\n :return: mash_results: A list with each entry in the result file as an entry, with attributes reference, query,\n distance, pvalue, and matching_hash"
56
false
OLC-Bioinformatics/ConFindr
read_mash_output
24,816
LDU_FT/pre-commit/pre-commit/use_color
LDU_FT
[ "<BEGIN>\n## `_shuffled`", "Deterministically shuffle identically under both py2 + py3.\n<END>", "<BEGIN>\n## `envcontext`", "In this context, `os.environ` is modified according to `patch`.", " `patch` is an iterable of 2-tuples (key, value):\n `key`: string\n `value`:\n - string...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the use_color API. 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 use_color API. 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...
Choose whether to use color based on the command argument. Args: setting - Either `auto`, `always`, or `never`
"Choose whether to use color based on the command argument.\n\n Args:\n setting - Either `auto`, `always`, or `never`"
54
false
pre-commit/pre-commit
use_color
24,817
LDU_FT/IBM/ibm-cos-sdk-python-s3transfer/set_log_details
LDU_FT
[ "<BEGIN>\n## `store`", "store a config value in a dictionary, these values are used to populate a trasnfer spec\n validation -- check type, check allowed values and rename if required\n<END>", "<BEGIN>\n## `multi_session`", "convert the multi_session param a number\n<END>", "<BEGIN>\n## `_raw_asp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_log_details API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_log_details API. 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...
set the aspera log path - used by th Ascp process set the internal aspera sdk activity - for debug purposes
"set the aspera log path - used by th Ascp process\n set the internal aspera sdk activity - for debug purposes"
89
false
IBM/ibm-cos-sdk-python-s3transfer
set_log_details
24,818
LDU_FT/jamescooke/flake8-aaa/do_command_line
LDU_FT
[ "<BEGIN>\n## `do_command_line`", "Currently a small stub to create an instance of Checker for the passed\n ``infile`` and run its test functions through linting.", " Args:\n infile", " Returns:\n int: Number of flake8 errors raised.\n<END>", "<BEGIN>\n## `run`", "Yields:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_command_line API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_command_line API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Currently a small stub to create an instance of Checker for the passed ``infile`` and run its test functions through linting. Args: infile Returns: int: Number of flake8 errors raised.
"Currently a small stub to create an instance of Checker for the passed\n ``infile`` and run its test functions through linting.\n\n Args:\n infile\n\n Returns:\n int: Number of flake8 errors raised."
66
false
jamescooke/flake8-aaa
do_command_line
24,819
LDU_FT/ska-sa/katcp-python/_unescape_match
LDU_FT
[ "<BEGIN>\n## `request_time`", "Return the current time in ms since the Unix Epoch.\n<END>", "<BEGIN>\n## `request_raw_reverse`", "A raw request handler to demonstrate the calling convention if\n @request decoraters are not used. Reverses the message arguments.\n<END>", "<BEGIN>\n## `transform_future`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _unescape_match API. 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 _unescape_match API. 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...
Given an re.Match, unescape the escape code it represents.
"Given an re.Match, unescape the escape code it represents."
905
false
ska-sa/katcp-python
_unescape_match
24,820
LDU_FT/danpoland/pyramid-restful-framework/_check_object_list_is_ordered
LDU_FT
[ "<BEGIN>\n## `parse_requested_expands`", "Extracts the value of the expand query string parameter from a request.\n Supports comma separated lists.", " :param query_key: The name query string parameter.\n :param request: Request instance.\n :return: List of strings representing the values of the exp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_object_list_is_ordered API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_object_list_is_ordered API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Warn if self.object_list is unordered (typically a QuerySet).
"Warn if self.object_list is unordered (typically a QuerySet)."
70
false
danpoland/pyramid-restful-framework
_check_object_list_is_ordered
24,821
LDU_FT/aarongarrett/inspyred/random_replacement
LDU_FT
[ "<BEGIN>\n## `mutator`", "Return an inspyred mutator function based on the given function.", " This function generator takes a function that operates on only\n one candidate to produce a single mutated candidate. The generator \n handles the iteration over each candidate in the set to be mutated.", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the random_replacement 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 random_replacement 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...
Performs random replacement with optional weak elitism. This function performs random replacement, which means that the offspring replace random members of the population, keeping the population size constant. Weak elitism may also be specified through the `num_elites` keyword argument in args. If...
"Performs random replacement with optional weak elitism.\n \n This function performs random replacement, which means that\n the offspring replace random members of the population, keeping\n the population size constant. Weak elitism may also be specified \n through the `num_elites` keyword argument in ar...
390
false
aarongarrett/inspyred
random_replacement
24,822
LDU_FT/pypa/setuptools/findall
LDU_FT
[ "<BEGIN>\n## `indentedBlock`", "Helper method for defining space-delimited indentation blocks, such as\r\n those used to define block statements in Python source code.\r", " Parameters:\r\n - blockStatementExpr - expression defining syntax of statement that\r\n is repeated within the indent...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the findall API. 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 findall API. 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...
Find all files under 'dir' and return the list of full filenames. Unless dir is '.', return full filenames with dir prepended.
"Find all files under 'dir' and return the list of full filenames.\n Unless dir is '.', return full filenames with dir prepended."
565
false
pypa/setuptools
findall
24,823
LDU_FT/mobolic/facebook-sdk/get_version
LDU_FT
[ "<BEGIN>\n## `get_user_from_cookie`", "Parses the cookie set by the official Facebook JavaScript SDK.", " cookies should be a dictionary-like object mapping cookie names to\n cookie values.", " If the user is logged in via Facebook, we return a dictionary with\n the keys \"uid\" and \"access_token...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extra...
Fetches the current version number of the Graph API being used.
"Fetches the current version number of the Graph API being used."
56
false
mobolic/facebook-sdk
get_version
24,824
LDU_FT/NLeSC/scriptcwl/inputs
LDU_FT
[ "<BEGIN>\n## `load_steps`", "Return a dictionary containing Steps read from file.", " Args:\n steps_dir (str, optional): path to directory containing CWL files.\n step_file (str, optional): path or http(s) url to a single CWL file.\n step_list (list, optional): a list of directories, url...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inputs API. 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 inputs API. 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 ...
List input names and types of a step in the steps library. Args: name (str): name of a step in the steps library.
"List input names and types of a step in the steps library.\n\n Args:\n name (str): name of a step in the steps library."
85
false
NLeSC/scriptcwl
inputs
24,825
LDU_FT/gpoulter/python-ngram/symmetric_difference
LDU_FT
[ "<BEGIN>\n## `copy`", "Return a new NGram object with the same settings, and\n referencing the same items. Copy is shallow in that\n each item is not recursively copied. Optionally specify\n alternate items to populate the copy.", " >>> from ngram import NGram\n >>> from co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the symmetric_difference 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 symmetric_difference API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Return the symmetric difference of two sets as a new set. >>> from ngram import NGram >>> a = NGram(['spam', 'eggs']) >>> b = NGram(['spam', 'ham']) >>> sorted(list(a.symmetric_difference(b))) ['eggs', 'ham']
"Return the symmetric difference of two sets as a new set.\n\n >>> from ngram import NGram\n >>> a = NGram(['spam', 'eggs'])\n >>> b = NGram(['spam', 'ham'])\n >>> sorted(list(a.symmetric_difference(b)))\n ['eggs', 'ham']"
59
false
gpoulter/python-ngram
symmetric_difference
24,826
LDU_FT/switchboardpy/switchboard/is_active
LDU_FT
[ "<BEGIN>\n## `has_active_condition`", "Given a list of instances, and the condition active for\n this switch, returns a boolean representing if the\n conditional is met, including a non-instance default.\n<END>", "<BEGIN>\n## `_key`", "Returns a Datastore key object, prefixed with the NAMESPACE....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_active API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_active API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Returns ``True`` if any of ``instances`` match an active switch. Otherwise returns ``False``. >>> operator.is_active('my_feature', request) #doctest: +SKIP
"Returns ``True`` if any of ``instances`` match an active switch.\n Otherwise returns ``False``.\n\n >>> operator.is_active('my_feature', request) #doctest: +SKIP"
30
false
switchboardpy/switchboard
is_active
24,827
LDU_FT/inveniosoftware/invenio-pidrelations/resolve_pid
LDU_FT
[ "<BEGIN>\n## `resolve_pid`", "Retrieve the real PID given a fetched PID.", " :param pid: fetched PID to resolve.\n<END>", "<BEGIN>\n## `ordered`", "Order the query result on the relations' indexes.\n<END>", "<BEGIN>\n## `_resolved_pid`", "Resolve self.pid if it is a fetched pid.\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resolve_pid API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resolve_pid API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Retrieve the real PID given a fetched PID. :param pid: fetched PID to resolve.
"Retrieve the real PID given a fetched PID.\n\n :param pid: fetched PID to resolve."
53
false
inveniosoftware/invenio-pidrelations
resolve_pid
24,828
LDU_FT/niolabs/python-xbee/_build_command
LDU_FT
[ "<BEGIN>\n## `_write`", "_write: binary data -> None", " Packages the given binary data in an API frame and writes the\n result to the serial port\n<END>", "<BEGIN>\n## `_build_command`", "_build_command: string (binary data) ... -> binary data", " _build_command will construct a comm...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build_command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build_command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
_build_command: string (binary data) ... -> binary data _build_command will construct a command packet according to the specified command's specification in api_commands. It will expect named arguments for all fields other than those with a default value or a length of 'None'. ...
"_build_command: string (binary data) ... -> binary data\n\n _build_command will construct a command packet according to the\n specified command's specification in api_commands. It will expect\n named arguments for all fields other than those with a default\n value or a length of 'None'.\n\n...
91
false
niolabs/python-xbee
_build_command
24,829
LDU_FT/xaptum/xtt-python/to_text
LDU_FT
[ "<BEGIN>\n## `create_ecdsap256_key_pair`", "Create a new ECDSAP256 key pair.", " :returns: a tuple of the public and private keys\n<END>", "<BEGIN>\n## `to_bytes`", "Converts the string to a bytes type, if not already.", " :s: the string to convert to bytes\n :returns: `str` on Python2 and `bytes...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Converts the bytes to a text type, if not already. :s: the bytes to convert to text :returns: `unicode` on Python2 and `str` on Python3.
"Converts the bytes to a text type, if not already.\n\n :s: the bytes to convert to text\n :returns: `unicode` on Python2 and `str` on Python3."
26
false
xaptum/xtt-python
to_text
24,830
LDU_FT/mfcloud/python-zvm-sdk/_add_mdisk
LDU_FT
[ "<BEGIN>\n## `getConsole`", "Get the virtual machine's console output.", " Input:\n Request Handle with the following properties:\n function - 'CMDVM'\n subfunction - 'CMD'\n userid - userid of the virtual machine", " Output:\n Request Handle updated with t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_mdisk API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_mdisk API. 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...
Create one disk for userid NOTE: No read, write and multi password specified, and access mode default as 'MR'.
"Create one disk for userid\n\n NOTE: No read, write and multi password specified, and\n access mode default as 'MR'."
643
false
mfcloud/python-zvm-sdk
_add_mdisk
24,831
LDU_FT/newville/wxmplot/_updateCanvasDraw
LDU_FT
[ "<BEGIN>\n## `display`", "generic display, using imshow (default) or contour\n<END>", "<BEGIN>\n## `update_image`", "update image on panel, as quickly as possible\n<END>", "<BEGIN>\n## `add_highlight_area`", "add a highlighted area -- outline an arbitrarily shape --\n as if drawn from a Lasso event...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _updateCanvasDraw API. 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 _updateCanvasDraw API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Overload of the draw function that update axes position before each draw
"Overload of the draw function that update\n axes position before each draw"
169
false
newville/wxmplot
_updateCanvasDraw
24,832
LDU_FT/idlesign/steampak/install_dir
LDU_FT
[ "<BEGIN>\n## `get_filter_cardborder`", "Returns game cards URL filter for a given cardborder\n type (TAG_CARDBORDER_NORMAL / TAG_CARDBORDER_FOIL).", " To be used in URL_GAMECARDS.", " :param str|unicode cardborder_type:\n :rtype: str|unicode\n<END>", "<BEGIN>\n## `install_dir`", "Returns appli...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the install_dir API. 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 install_dir API. 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 application installation path. .. note:: If fails this falls back to a restricted interface, which can only be used by approved apps. :rtype: str
"Returns application installation path.\n\n .. note::\n\n If fails this falls back to a restricted interface, which can only be used by approved apps.\n\n :rtype: str"
72
false
idlesign/steampak
install_dir
24,833
LDU_FT/hasgeek/coaster/bestmatch
LDU_FT
[ "<BEGIN>\n## `init_app`", "Enables logging for an app using :class:`LocalVarFormatter`. Requires the\n app to be configured and checks for the following configuration parameters.\n All are optional:", " * ``LOGFILE``: Name of the file to log to (default ``error.log``)\n * ``ADMINS``: List of email a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bestmatch API. 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 bestmatch API. 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...
Best matching current scalar state (direct or conditional), only applicable when accessed via an instance.
"Best matching current scalar state (direct or conditional), only\n applicable when accessed via an instance."
344
false
hasgeek/coaster
bestmatch
24,834
LDU_FT/Genida/django-appsettings/raw_value
LDU_FT
[ "<BEGIN>\n## `check`", "Class method to check every settings.", " Will raise an ``ImproperlyConfigured`` exception with explanation.\n<END>", "<BEGIN>\n## `default_value`", "Property to return the default value.", " If the default value is callable and call_default is True, return\n t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the raw_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the raw_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 extract...
Property to return the variable defined in ``django.conf.settings``. Returns: object: the variable defined in ``django.conf.settings``. Raises: AttributeError: if the variable is missing. KeyError: if the item is missing from nested setting.
"Property to return the variable defined in ``django.conf.settings``.\n\n Returns:\n object: the variable defined in ``django.conf.settings``.\n\n Raises:\n AttributeError: if the variable is missing.\n KeyError: if the item is missing from nested setting."
31
false
Genida/django-appsettings
raw_value
24,835
LDU_FT/hozn/stravalib/get_segment
LDU_FT
[ "<BEGIN>\n## `logged_in`", "Method called by Strava (redirect) that includes parameters.\n - state\n - code\n - error\n<END>", "<BEGIN>\n## `unmarshal`", "Convert the value from parsed JSON structure to native python representation.", " By default this will leave the value as-is since the JS...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_segment API. 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_segment API. 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...
Gets a specific segment by ID. http://strava.github.io/api/v3/segments/#retrieve :param segment_id: The segment to fetch. :type segment_id: int :return: A segment object. :rtype: :class:`stravalib.model.Segment`
"Gets a specific segment by ID.\n\n http://strava.github.io/api/v3/segments/#retrieve\n\n :param segment_id: The segment to fetch.\n :type segment_id: int\n\n :return: A segment object.\n :rtype: :class:`stravalib.model.Segment`"
367
false
hozn/stravalib
get_segment
24,836
LDU_FT/hovren/crisp/depth_file_for_rgb_file
LDU_FT
[ "<BEGIN>\n## `sync_camera_gyro`", "Get time offset that aligns image timestamps with gyro timestamps.", " Given an image sequence, and gyroscope data, with their respective timestamps,\n calculate the offset that aligns the image data with the gyro data.\n The timestamps must only differ by an offset, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the depth_file_for_rgb_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...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the depth_file_for_rgb_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...
Returns the *closest* depth file from an RGB filename
"Returns the *closest* depth file from an RGB filename"
252
false
hovren/crisp
depth_file_for_rgb_file
24,837
LDU_FT/TissueMAPS/TmDeploy/get_frontend_node
LDU_FT
[ "<BEGIN>\n## `__init_os_api`", "Initialise client objects for talking to OpenStack API.", " This is in a separate function so to be called by ``__init__`` and\n ``__setstate__``.\n<END>", "<BEGIN>\n## `stop_instance`", "Stops the instance gracefully.", " :param str instance_id: instan...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_frontend_node API. 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_frontend_node API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Returns the first node of the class specified in the configuration file as `ssh_to`, or the first node of the first class in alphabetic order. :return: :py:class:`Node` :raise: :py:class:`elasticluster.exceptions.NodeNotFound` if no valid frontend node is found
"Returns the first node of the class specified in the\n configuration file as `ssh_to`, or the first node of\n the first class in alphabetic order.\n\n :return: :py:class:`Node`\n :raise: :py:class:`elasticluster.exceptions.NodeNotFound` if no\n valid frontend node is found"
192
false
TissueMAPS/TmDeploy
get_frontend_node
24,838
LDU_FT/lago-project/lago/virt_conf_from_stream
LDU_FT
[ "<BEGIN>\n## `expose`", "Decorator to be used with :class:`SDKWrapper`. This decorator indicates\n that the wrapped method or class should be exposed in the proxied object.", " Args:\n func(types.FunctionType/types.MethodType): function to decorate", " Returns:\n None\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the virt_conf_from_stream 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 virt_conf_from_stream API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Initializes all the virt infrastructure of the prefix, creating the domains disks, doing any network leases and creating all the virt related files and dirs inside this prefix. Args: conf_fd (File): File like object to read the config from template_repo (TemplateReposito...
"Initializes all the virt infrastructure of the prefix, creating the\n domains disks, doing any network leases and creating all the virt\n related files and dirs inside this prefix.\n\n Args:\n conf_fd (File): File like object to read the config from\n template_repo (TemplateR...
718
false
lago-project/lago
virt_conf_from_stream
24,839
LDU_FT/guaix-ucm/pyemir/nscan_minmax_frontiers
LDU_FT
[ "<BEGIN>\n## `merge2images`", "Merge 2 EMIR images, averaging the common region.", " Parameters\n ----------\n hdu1 : HDUList object\n Input image #1.\n hdu2 : HDUList object\n Input image #2.\n debugplot : int\n Determines whether intermediate computations and/or plots\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nscan_minmax_frontiers 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 nscan_minmax_frontiers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Compute valid scan range for provided y0_frontier values. Parameters ---------- y0_frontier_lower : float Ordinate of the lower frontier. y0_frontier_upper : float Ordinate of the upper frontier. resize : bool If True, when the limits are beyond the expected values [1...
"Compute valid scan range for provided y0_frontier values.\n Parameters\n ----------\n y0_frontier_lower : float\n Ordinate of the lower frontier.\n y0_frontier_upper : float\n Ordinate of the upper frontier.\n resize : bool\n If True, when the limits are beyond the expected values\n...
282
false
guaix-ucm/pyemir
nscan_minmax_frontiers
24,840
LDU_FT/ApproxEng/approxeng.input/value
LDU_FT
[ "<BEGIN>\n## `map_into_range`", "Map an input function into an output value, clamping such that the magnitude of the output is at most 1.0", " :param low:\n The value in the input range corresponding to zero.\n :param high:\n The value in the input range corresponding to 1.0 or -1.0, dependi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted d...
Get a centre-compensated, scaled, value for the axis, taking any dead-zone into account. The value will scale from 0.0 at the edge of the dead-zone to 1.0 (positive) or -1.0 (negative) at the extreme position of the controller or the edge of the hot zone, if defined as other than 1.0. The axis will auto...
"Get a centre-compensated, scaled, value for the axis, taking any dead-zone into account. The value will\n scale from 0.0 at the edge of the dead-zone to 1.0 (positive) or -1.0 (negative) at the extreme position of\n the controller or the edge of the hot zone, if defined as other than 1.0. The axis will a...
86
false
ApproxEng/approxeng.input
value
24,841
LDU_FT/genialis/resolwe/duplicate
LDU_FT
[ "<BEGIN>\n## `extend_settings`", "Extend the settings the manager will serialize.", " :param data_id: The :class:`~resolwe.flow.models.Data` object id\n being prepared for.\n :param files: The settings dictionary to be serialized. Keys are\n filenames, values are the objects ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the duplicate API. 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 duplicate API. 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...
Duplicate (make a copy) ``Entity`` objects. :param contributor: Duplication user :param inherit_collections: If ``True`` then duplicated entities will be added to collections the original entity is part of. Duplicated entities' data objects will also be added to the ...
"Duplicate (make a copy) ``Entity`` objects.\n\n :param contributor: Duplication user\n :param inherit_collections: If ``True`` then duplicated\n entities will be added to collections the original entity\n is part of. Duplicated entities' data objects will also be\n added ...
627
false
genialis/resolwe
duplicate
24,842
LDU_FT/LiftoffSoftware/htmltag/strip_xss
LDU_FT
[ "<BEGIN>\n## `strip_xss`", "This function returns a tuple containing:", " * *html* with all non-whitelisted HTML tags replaced with *replacement*.\n * A `set()` containing the tags that were removed.", " Any tags that contain JavaScript, VBScript, or other known XSS/executable\n functions ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the strip_xss API. 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 strip_xss API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
This function returns a tuple containing: * *html* with all non-whitelisted HTML tags replaced with *replacement*. * A `set()` containing the tags that were removed. Any tags that contain JavaScript, VBScript, or other known XSS/executable functions will also be removed. If *whitelist* is...
"This function returns a tuple containing:\n\n * *html* with all non-whitelisted HTML tags replaced with *replacement*.\n * A `set()` containing the tags that were removed.\n\n Any tags that contain JavaScript, VBScript, or other known XSS/executable\n functions will also be removed.\n\n If *whit...
29
false
LiftoffSoftware/htmltag
strip_xss
24,843
LDU_FT/hyperledger/sawtooth-core/paginate_resources
LDU_FT
[ "<BEGIN>\n## `run_callback`", "Calls the callback_func, passing in the two positional arguments,\n conditionally waiting if the callback function hasn't been set yet.\n Meant to be run in a threadpool owned by the FutureCollection.", " Returns:\n None\n<END>", "<BEGIN>\n## `add...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the paginate_resources 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 paginate_resources 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...
Truncates a list of resources based on ClientPagingControls Args: request (object): The parsed protobuf request object resources (list of objects): The resources to be paginated Returns: list: The paginated list of resources object: The ClientPagingRespo...
"Truncates a list of resources based on ClientPagingControls\n\n Args:\n request (object): The parsed protobuf request object\n resources (list of objects): The resources to be paginated\n\n Returns:\n list: The paginated list of resources\n object: The ClientPa...
876
false
hyperledger/sawtooth-core
paginate_resources
24,844
LDU_FT/micropython/micropython/write_page
LDU_FT
[ "<BEGIN>\n## `ptr`", "Returns the numbered function (i.e. USART6) for this AF.\n<END>", "<BEGIN>\n## `run_loop`", "Start the loop.", " :param `leds`: Which LEDs to light up upon switch press.\n :type `leds`: sequence of LED objects\n<END>", "<BEGIN>\n## `find_c_file`", "Search vpaths for the c fil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_page API. 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_page API. 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...
Writes a single page. This routine assumes that memory has already been erased.
"Writes a single page. This routine assumes that memory has already\n been erased."
54
false
micropython/micropython
write_page
24,845
LDU_FT/fozzle/python-brotherprint/forward_feed
LDU_FT
[ "<BEGIN>\n## `initialize`", "Calling this function initializes the printer.", " Args:\n None\n Returns:\n None\n Raises:\n None\n<END>", "<BEGIN>\n## `select_charset`", "Select international character set and changes codes in code table accordingly", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the forward_feed API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the forward_feed API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Calling this function finishes input of the current line, then moves the vertical print position forward by x/300 inch. Args: amount: how far foward you want the position moved. Actual movement is calculated as amount/300 inches. Returns: None ...
"Calling this function finishes input of the current line, then moves the vertical \n print position forward by x/300 inch.\n \n Args:\n amount: how far foward you want the position moved. Actual movement is calculated as \n amount/300 inches.\n Returns:\n No...
113
false
fozzle/python-brotherprint
forward_feed
24,846
LDU_FT/cmcdowell/weatherpy/_get_xml
LDU_FT
[ "<BEGIN>\n## `_get_xml`", "Returns the channel element of the RSS feed\n<END>", "<BEGIN>\n## `_parse_text`", "Returns the text, as a string, of the specified element in the specified\n namespace of the RSS feed.", " Takes element_name and namespace as strings.\n<END>", "<BEGIN>\n## `_parse_a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_xml API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_xml API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Returns the channel element of the RSS feed
"Returns the channel element of the RSS feed"
19
false
cmcdowell/weatherpy
_get_xml
24,847
LDU_FT/drastus/unicover/_getFontChars
LDU_FT
[ "<BEGIN>\n## `dispatch`", "Calls proper method depending on command-line arguments.\n<END>", "<BEGIN>\n## `chars`", "Analyses characters in single font or all fonts.\n<END>", "<BEGIN>\n## `char`", "Shows all system fonts that contain given character.\n<END>", "<BEGIN>\n## `fontChar`", "Checks if chara...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _getFontChars API. 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 _getFontChars API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Returns code points of characters included in given font files.
"Returns code points of characters included in given font files."
20
false
drastus/unicover
_getFontChars
24,848
LDU_FT/redcap-tools/PyCap/get_content
LDU_FT
[ "<BEGIN>\n## `validate`", "Checks that at least required params exist\n<END>", "<BEGIN>\n## `execute`", "Execute the API request and return data", " Parameters\n ----------\n kwargs :\n passed to requests.post()", " Returns\n -------\n response : list, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extra...
Abstraction for grabbing content from a returned response
"Abstraction for grabbing content from a returned response"
79
false
redcap-tools/PyCap
get_content
24,849
LDU_FT/carljm/django-adminfiles/render_upload
LDU_FT
[ "<BEGIN>\n## `get_uploads`", "Return a generator yielding uploads referenced in the given text.\n<END>", "<BEGIN>\n## `parse_match`", "Accept an re match object resulting from an ``UPLOAD_RE`` match\n and return a two-tuple where the first element is the\n corresponding ``FileUpload`` and the second is ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_upload API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_upload API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Render a single ``FileUpload`` model instance using the appropriate rendering template and the given keyword options, and return the rendered HTML. The template used to render each upload is selected based on the mime-type of the upload. For an upload with mime-type "image/jpeg", assuming the d...
"Render a single ``FileUpload`` model instance using the\n appropriate rendering template and the given keyword options, and\n return the rendered HTML.\n \n The template used to render each upload is selected based on the\n mime-type of the upload. For an upload with mime-type\n \"image/jpeg\", assum...
67
false
carljm/django-adminfiles
render_upload
24,850
LDU_FT/mozilla/python_moztelemetry/get_one_ping_per_client
LDU_FT
[ "<BEGIN>\n## `add_expiration_postfix`", "Formats the expiration version and adds a version postfix if needed.", " :param expiration: the expiration version string.\n :return: the modified expiration string.\n<END>", "<BEGIN>\n## `load_yaml_file`", "Load a YAML file from disk, throw a ParserError on fa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_one_ping_per_client 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_one_ping_per_client API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Returns a single ping for each client in the RDD. THIS METHOD IS NOT RECOMMENDED: The ping to be returned is essentially selected at random. It is also expensive as it requires data to be shuffled around. It should be run only after extracting a subset with get_pings_properties.
"Returns a single ping for each client in the RDD.\n\n THIS METHOD IS NOT RECOMMENDED: The ping to be returned is essentially\n selected at random. It is also expensive as it requires data to be\n shuffled around. It should be run only after extracting a subset with\n get_pings_properties."
122
false
mozilla/python_moztelemetry
get_one_ping_per_client
24,851
LDU_FT/brettcannon/caniusepython3/message
LDU_FT
[ "<BEGIN>\n## `_manual_overrides`", "Read the overrides file.", " An attempt is made to read the file as it currently stands on GitHub, and\n then only if that fails is the included file used.\n<END>", "<BEGIN>\n## `supports_py3`", "Check with PyPI if a project supports Python 3.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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. The extracted...
Create a sequence of key messages based on what is blocking.
"Create a sequence of key messages based on what is blocking."
25
false
brettcannon/caniusepython3
message
24,852
LDU_FT/cpburnz/python-path-specification/_iter_tree_next
LDU_FT
[ "<BEGIN>\n## `from_lines`", "Compiles the pattern lines.", "\t\t*pattern_factory* can be either the name of a registered pattern\n\t\tfactory (:class:`str`), or a :class:`~collections.abc.Callable` used\n\t\tto compile patterns. It must accept an uncompiled pattern (:class:`str`)\n\t\tand return the compiled pa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _iter_tree_next API. 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 _iter_tree_next API. 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...
Scan the directory for all descendant files. *root_full* (:class:`str`) the absolute path to the root directory. *dir_rel* (:class:`str`) the path to the directory to scan relative to *root_full*. *memo* (:class:`dict`) keeps track of ancestor directories encountered. Maps each ancestor real path (:class:`str``...
"Scan the directory for all descendant files.\n\n\t*root_full* (:class:`str`) the absolute path to the root directory.\n\n\t*dir_rel* (:class:`str`) the path to the directory to scan relative to\n\t*root_full*.\n\n\t*memo* (:class:`dict`) keeps track of ancestor directories\n\tencountered. Maps each ancestor real path ...
78
false
cpburnz/python-path-specification
_iter_tree_next
24,853
LDU_FT/shapiromatron/bmds/plot
LDU_FT
[ "<BEGIN>\n## `as_dfile`", "Return the dataset representation in BMDS .(d) file.", " Example\n -------\n >>> print(dataset.as_dfile())\n Dose Incidence NEGATIVE_RESPONSE\n 0.000000 5 70\n 1.960000 1 48\n 5.690000 3 47\n 29.750000 14 35\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot API. 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 plot API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Return a matplotlib figure of the dose-response dataset. Examples -------- >>> fig = dataset.plot() >>> fig.show() >>> fig.clear() .. image:: ../tests/resources/test_cidataset_plot.png :align: center :alt: Example generated BMD plot Return...
"Return a matplotlib figure of the dose-response dataset.\n\n Examples\n --------\n >>> fig = dataset.plot()\n >>> fig.show()\n >>> fig.clear()\n\n .. image:: ../tests/resources/test_cidataset_plot.png\n :align: center\n :alt: Example generated BMD plot\n\n ...
113
false
shapiromatron/bmds
plot
24,854
LDU_FT/codeforamerica/epa_python/catalog
LDU_FT
[ "<BEGIN>\n## `admin_penalty`", "An enforcement action that results in levying the permit holder with a\n penalty or fine. It is used to track judicial hearing dates, penalty\n amounts, and type of administrative penalty order.", " >>> PCS().admin_penalty('enfor_action_date', '16-MAR-01')\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the catalog API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the catalog API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Lookup the values available for querying.
"Lookup the values available for querying."
114
false
codeforamerica/epa_python
catalog
24,855
LDU_FT/mieubrisse/wunderpy2/update_list_positions_obj
LDU_FT
[ "<BEGIN>\n## `get_endpoint_obj`", "Tiny helper function that gets used all over the place to join the object ID to the endpoint and run a GET request, returning the result\n<END>", "<BEGIN>\n## `update_endpoint_obj`", "Helper method to ease the repetitiveness of updating an... SO VERY DRY ", " (That's a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_list_positions_obj 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 update_list_positions_obj API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Updates the ordering of lists to have the given value. The given ID and revision should match the singleton object defining how lists are laid out. See https://developer.wunderlist.com/documentation/endpoints/positions for more info Return: The updated ListPositionsObj-mapped object defining t...
"Updates the ordering of lists to have the given value. The given ID and revision should match the singleton object defining how lists are laid out.\n\n See https://developer.wunderlist.com/documentation/endpoints/positions for more info\n\n Return:\n The updated ListPositionsObj-mapped object defi...
94
false
mieubrisse/wunderpy2
update_list_positions_obj
24,856
LDU_FT/pystorm/pystorm/_run
LDU_FT
[ "<BEGIN>\n## `emit`", "Emit a spout Tuple message.", " :param tup: the Tuple to send to Storm, should contain only\n JSON-serializable data.\n :type tup: list or tuple\n :param tup_id: the ID for the Tuple. Leave this blank for an\n unreliable emit.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
The inside of ``run``'s infinite loop. Separated out so it can be properly unit tested.
"The inside of ``run``'s infinite loop.\n\n Separated out so it can be properly unit tested."
103
false
pystorm/pystorm
_run
24,857
LDU_FT/django-fluent/django-fluent-contents/_single_site
LDU_FT
[ "<BEGIN>\n## `type_id`", "Shortcut to retrieving the ContentType id of the model.\n<END>", "<BEGIN>\n## `get_output_cache_key`", ".. versionadded:: 0.9\n Return the default cache key which is used to store a rendered item.\n By default, this function generates the cache key using :func:`ge...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _single_site API. 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 _single_site API. 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...
Make sure the queryset is filtered on a parent site, if that didn't happen already.
"Make sure the queryset is filtered on a parent site, if that didn't happen already."
227
false
django-fluent/django-fluent-contents
_single_site
24,858
LDU_FT/pndurette/gTTS/tone_marks
LDU_FT
[ "<BEGIN>\n## `tts_langs`", "Languages Google Text-to-Speech supports.", " Returns:\n dict: A dictionnary of the type `{ '<lang>': '<name>'}`", " Where `<lang>` is an IETF language tag such as `en` or `pt-br`,\n and `<name>` is the full English name of the language, such as\n `En...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tone_marks API. 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 tone_marks API. 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...
Keep tone-modifying punctuation by matching following character. Assumes the `tone_marks` pre-processor was run for cases where there might not be any space after a tone-modifying punctuation mark.
"Keep tone-modifying punctuation by matching following character.\n\n Assumes the `tone_marks` pre-processor was run for cases where there might\n not be any space after a tone-modifying punctuation mark."
68
false
pndurette/gTTS
tone_marks
24,859
LDU_FT/ARMmbed/mbed-cloud-sdk-python/add_campaign
LDU_FT
[ "<BEGIN>\n## `add_resource_subscription`", "Subscribe to a resource path # noqa: E501", "The Device Management Connect eventing model consists of observable resources. This means that endpoints can deliver updated resource content, periodically or with a more sophisticated solution-dependent logic. The OMA LwM...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_campaign API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_campaign API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Add new update campaign. Add an update campaign with a name and device filtering. Example: .. code-block:: python device_api, update_api = DeviceDirectoryAPI(), UpdateAPI() # Get a filter to use for update campaign query_obj = device_api.get_query(query_id="MYID")...
"Add new update campaign.\n\n Add an update campaign with a name and device filtering. Example:\n\n .. code-block:: python\n\n device_api, update_api = DeviceDirectoryAPI(), UpdateAPI()\n\n # Get a filter to use for update campaign\n query_obj = device_api.get_query(query_...
1,479
true
ARMmbed/mbed-cloud-sdk-python
add_campaign
24,860
LDU_FT/NikolayDachev/jadm/request_forward_agent
LDU_FT
[ "<BEGIN>\n## `recv`", "Read from the standard output of the forked program.", " :param int size: how many chars should be read", " :return: the length of the read content, as an `int`\n<END>", "<BEGIN>\n## `generate`", "Generate a new private DSS key. This factory function can be used to\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request_forward_agent 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 request_forward_agent API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Request for a forward SSH Agent on this channel. This is only valid for an ssh-agent from OpenSSH !!! :param function handler: a required handler to use for incoming SSH Agent connections :return: True if we are ok, else False (at that time we always return ok) :raises: SS...
"Request for a forward SSH Agent on this channel.\n This is only valid for an ssh-agent from OpenSSH !!!\n\n :param function handler:\n a required handler to use for incoming SSH Agent connections\n\n :return: True if we are ok, else False (at that time we always return ok)\n\n :r...
141
false
NikolayDachev/jadm
request_forward_agent
24,861
LDU_FT/jlesquembre/jlle/sanity_check
LDU_FT
[ "<BEGIN>\n## `no_input`", "Return whether the user wants to run in no-input mode.", " Enable this mode by adding a ``no-input`` option::", " [zest.releaser]\n no-input = yes", " The default when this option has not been set is False.", " Standard config rules app...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sanity_check API. 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 sanity_check API. 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...
Do sanity check before making changes Check that we are not on a tag and/or do not have local changes. Returns True when all is fine.
"Do sanity check before making changes\n\n Check that we are not on a tag and/or do not have local changes.\n\n Returns True when all is fine."
77
false
jlesquembre/jlle
sanity_check
24,862
LDU_FT/tamasgal/km3pipe/restore_session
LDU_FT
[ "<BEGIN>\n## `count_multiplicities`", "Calculate an array of multiplicities and corresponding coincidence IDs", " Note that this algorithm does not take care about DOM IDs, so it has to\n be fed with DOM hits.", " Parameters\n ----------\n times: array[float], shape=(n,)\n Hit times for ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the restore_session API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the restore_session API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Establish databse connection using permanent session cookie
"Establish databse connection using permanent session cookie"
418
false
tamasgal/km3pipe
restore_session
24,863
LDU_FT/Dentosal/python-sc2/debug_line_out
LDU_FT
[ "<BEGIN>\n## `main_base_ramp`", "Returns the Ramp instance of the closest main-ramp to start location. Look in game_info.py for more information\n<END>", "<BEGIN>\n## `get_available_abilities`", "Returns available abilities of one or more units.\n<END>", "<BEGIN>\n## `distribute_workers`", "Distributes wo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the debug_line_out API. 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 debug_line_out API. 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...
Draws a line from p0 to p1. Don't forget to add 'await self._client.send_debug'.
"Draws a line from p0 to p1. Don't forget to add 'await self._client.send_debug'."
155
false
Dentosal/python-sc2
debug_line_out
24,864
LDU_FT/vpelletier/pprofile/_iterOutFiles
LDU_FT
[ "<BEGIN>\n## `_iterOutFiles`", "Yields path, data, mimetype for each file involved on or produced by\n profiling.\n<END>", "<BEGIN>\n## `asMIMEString`", "Return a mime-multipart representation of:\n - callgrind profiling statistics (cachegrind.out.pprofile)\n - any SQL query issued via ZM...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _iterOutFiles API. 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 _iterOutFiles API. 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...
Yields path, data, mimetype for each file involved on or produced by profiling.
"Yields path, data, mimetype for each file involved on or produced by\n profiling."
32
false
vpelletier/pprofile
_iterOutFiles
24,865
LDU_FT/cackharot/suds-py3/append
LDU_FT
[ "<BEGIN>\n## `genprefix`", "Generate a prefix.\n @param node: An XML node on which the prefix will be used.\n @type node: L{sax.element.Element}\n @param ns: A namespace needing an unique prefix.\n @type ns: (prefix, uri)\n @return: The I{ns} with a new prefix.\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the append API. 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 append API. 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 ...
Append schema object's from B{s}ource list to the B{d}estination list while applying the filter. @param d: The destination list. @type d: list @param s: The source list. @type s: list @param filter: A filter that allows items to be appended. @type filter: L{Filter...
"Append schema object's from B{s}ource list to\n the B{d}estination list while applying the filter.\n @param d: The destination list.\n @type d: list\n @param s: The source list.\n @type s: list\n @param filter: A filter that allows items to be appended.\n @type filter: ...
387
false
cackharot/suds-py3
append
24,866
LDU_FT/reorx/torext/_handle_request_exception
LDU_FT
[ "<BEGIN>\n## `format_request`", "Override for better log format", " Tornado format:\n [INFO 2015-03-24 11:29:57 app:521] 200 GET /static/css/lib/pure-min.css (127.0.0.1) 6.76ms\n Current format:\n [gevent.wsgi] INFO 127.0.0.1 - - [2015-03-24 11:18:45] \"GET /test HTTP/1.1\" 200 304 0...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _handle_request_exception 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 _handle_request_exception API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
This method handle HTTPError exceptions the same as how tornado does, leave other exceptions to be handled by user defined handler function maped in class attribute `EXCEPTION_HANDLERS` Common HTTP status codes: 200 OK 301 Moved Permanently 302 Found ...
"This method handle HTTPError exceptions the same as how tornado does,\n leave other exceptions to be handled by user defined handler function\n maped in class attribute `EXCEPTION_HANDLERS`\n\n Common HTTP status codes:\n 200 OK\n 301 Moved Permanently\n 302 Found\...
70
false
reorx/torext
_handle_request_exception
24,867
LDU_FT/vmlaker/mpipe/get
LDU_FT
[ "<BEGIN>\n## `init2`", "Create *num_workers* worker objects with *input_tube* and \n an iterable of *output_tubes*. The worker reads a task from *input_tube* \n and writes the result to *output_tubes*.\n<END>", "<BEGIN>\n## `assemble`", "Create, assemble and start workers.\n Workers are c...
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...
Return the next available item from the tube. Blocks if tube is empty, until a producer for the tube puts an item on it.
"Return the next available item from the tube.\n\n Blocks if tube is empty, until a producer for the tube puts an item on it."
28
false
vmlaker/mpipe
get
24,868
LDU_FT/open-homeautomation/pknx/hpai_body
LDU_FT
[ "<BEGIN>\n## `ip_to_array`", "Convert a string representing an IPv4 address to 4 bytes.\n<END>", "<BEGIN>\n## `int_to_array`", "Convert an length byte integer to an array of bytes.\n<END>", "<BEGIN>\n## `parse_group_address`", "Parse KNX group addresses and return the address as an integer.", " This ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hpai_body API. 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 hpai_body API. 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...
Create a body with HPAI information. This is used for disconnect and connection state requests.
"Create a body with HPAI information.\n\n This is used for disconnect and connection state requests."
80
false
open-homeautomation/pknx
hpai_body
24,869
LDU_FT/rdireen/spherepy/copy
LDU_FT
[ "<BEGIN>\n## `sbessely`", "Returns a vector of spherical bessel functions yn:\r", " x: The argument.\r\n N: values of n will run from 0 to N-1.\n<END>", "<BEGIN>\n## `sbesselj`", "Returns a vector of spherical bessel functions jn:\r", " x: The argument.\r\n N: values of...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Make a deep copy of this object. Example:: >>> c2 = c.copy()
"Make a deep copy of this object.\r\n \r\n Example::\r\n\r\n >>> c2 = c.copy()"
194
false
rdireen/spherepy
copy
24,870
LDU_FT/ahmontero/dop/restore_droplet
LDU_FT
[ "<BEGIN>\n## `droplets`", "This method returns the list of droplets\n<END>", "<BEGIN>\n## `reboot_droplet`", "This method allows you to reboot a droplet. This is the preferred method\n to use if a server is not responding.\n<END>", "<BEGIN>\n## `power_cycle_droplet`", "This method allows you to pow...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the restore_droplet API. 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 restore_droplet API. 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...
This method allows you to restore a droplet with a previous image or snapshot. This will be a mirror copy of the image or snapshot to your droplet. Be sure you have backed up any necessary information prior to restore. Required parameters: droplet_id: Numeric, this ...
"This method allows you to restore a droplet with a previous image or snapshot.\n This will be a mirror copy of the image or snapshot to your droplet.\n Be sure you have backed up any necessary information prior to restore.\n\n Required parameters:\n\n droplet_id:\n Numeri...
102
false
ahmontero/dop
restore_droplet
24,871
LDU_FT/getsentry/rb/join
LDU_FT
[ "<BEGIN>\n## `add_host`", "Adds a new host to the cluster. This is only really useful for\n unittests as normally hosts are added through the constructor and\n changes after the cluster has been used for the first time are\n unlikely to make sense.\n<END>", "<BEGIN>\n## `remove_host`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the join API. 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 join API. 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...
Waits for all outstanding responses to come back or the timeout to be hit.
"Waits for all outstanding responses to come back or the timeout\n to be hit."
87
false
getsentry/rb
join
24,872