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/Jaymon/pout/loggers
LDU_FT
[ "<BEGIN>\n## `inject`", "inject code into sitecustomize.py that will inject pout into the builtins\n so it will be available globally\n<END>", "<BEGIN>\n## `is_complete`", "Return True if this call string is complete, meaning it has a function\n name and balanced parens\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loggers API. Each 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 loggers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Return all the loggers that should be activated
"Return all the loggers that should be activated"
153
false
Jaymon/pout
loggers
20,173
LDU_FT/mfussenegger/cr8/find_java_home
LDU_FT
[ "<BEGIN>\n## `to_int`", "converts a string to an integer", " >>> to_int('1_000_000')\n 1000000", " >>> to_int('1e6')\n 1000000", " >>> to_int('1000')\n 1000\n<END>", "<BEGIN>\n## `dicts_from_lines`", "returns a generator producing dicts from json lines", " 1 JSON object per line i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_java_home API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_java_home API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Return a path to a JAVA_HOME suites for the given CrateDB version
"Return a path to a JAVA_HOME suites for the given CrateDB version"
146
false
mfussenegger/cr8
find_java_home
20,174
LDU_FT/curious-containers/cc-core/resolve_input_references
LDU_FT
[ "<BEGIN>\n## `brief_exception_text`", "Returns the Exception class and the message of the exception as string.", " :param exception: The exception to format\n :param secret_values: Values to hide in output\n<END>", "<BEGIN>\n## `print_exception`", "Prints the exception message and the name of the exce...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resolve_input_references API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resolve_input_references API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Resolves input references given in the string to_resolve by using the inputs_to_reference. See http://www.commonwl.org/user_guide/06-params/index.html for more information. Example: "$(inputs.my_file.nameroot).md" -> "filename.md" :param to_resolve: The path to match :param inputs_to_reference: I...
"Resolves input references given in the string to_resolve by using the inputs_to_reference.\n\n See http://www.commonwl.org/user_guide/06-params/index.html for more information.\n\n Example:\n \"$(inputs.my_file.nameroot).md\" -> \"filename.md\"\n\n :param to_resolve: The path to match\n :param inputs_to...
96
false
curious-containers/cc-core
resolve_input_references
20,175
LDU_FT/transifex/transifex-python-library/put
LDU_FT
[ "<BEGIN>\n## `get`", "Retrieve an object by making a GET request to Transifex.", " Each value in `kwargs` that corresponds to a field\n defined in `self.url_fields` will be used in the URL path\n of the request, so that a particular entry of this model\n is identified and retrieved."...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the put API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the put API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Make a PUT request. If a `filename` is not specified, then the data must already be JSON-encoded. We specify the Content-Type accordingly. Else, we make a multipart/form-encoded request. In this case, the data variable must be a dict-like object. The file must already be suitab...
"Make a PUT request.\n\n If a `filename` is not specified, then the data must already be\n JSON-encoded. We specify the Content-Type accordingly.\n\n Else, we make a multipart/form-encoded request. In this case, the data\n variable must be a dict-like object. The file must already be\n ...
64
false
transifex/transifex-python-library
put
20,176
LDU_FT/monim67/django-bootstrap-datepicker-plus/end_of
LDU_FT
[ "<BEGIN>\n## `format_value`", "Return a value as it should appear when rendered in a template.", " Missing method of django.forms.widgets.Widget class\n<END>", "<BEGIN>\n## `get_context`", "Missing method of django.forms.widgets.Widget class.\n<END>", "<BEGIN>\n## `render`", "Render the widget as...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the end_of API. Each 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 end_of API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Set Date-Picker as the end-date of a date-range. Args: - event_id (string): User-defined unique id for linking two fields - import_options (bool): inherit options from start-date input, default: TRUE
"Set Date-Picker as the end-date of a date-range.\n\n Args:\n - event_id (string): User-defined unique id for linking two fields\n - import_options (bool): inherit options from start-date input,\n default: TRUE"
24
false
monim67/django-bootstrap-datepicker-plus
end_of
20,177
LDU_FT/PyThaiNLP/pythainlp/similarity
LDU_FT
[ "<BEGIN>\n## `spell`", ":param str word: word to check spelling\n :param str engine:\n * pn - Peter Norvig's algorithm (default)\n :return: list of words\n<END>", "<BEGIN>\n## `get_corpus`", "Read corpus from file and return a frozenset", " :param string filename: file corpus\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the similarity API. 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 similarity API. 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...
Get cosine similarity between two words. If a word is not in the vocabulary, KeyError will be raised. :param string word1: first word :param string word2: second word :return: the cosine similarity between the two word vectors
"Get cosine similarity between two words.\n If a word is not in the vocabulary, KeyError will be raised.\n\n :param string word1: first word\n :param string word2: second word\n :return: the cosine similarity between the two word vectors"
190
false
PyThaiNLP/pythainlp
similarity
20,178
LDU_FT/ethereum/web3.py/construct_fixture_middleware
LDU_FT
[ "<BEGIN>\n## `solidityKeccak`", "Executes keccak256 exactly as Solidity does.\n Takes list of abi_types as inputs -- `[uint24, int8[], bool]`\n and list of corresponding values -- `[20, [-1, 5, 0], True]`\n<END>", "<BEGIN>\n## `gas_price_strategy_middleware`", "Includes a gas price using the ga...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the construct_fixture_middleware API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the construct_fixture_middleware API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Constructs a middleware which returns a static response for any method which is found in the provided fixtures.
"Constructs a middleware which returns a static response for any method\n which is found in the provided fixtures."
268
false
ethereum/web3.py
construct_fixture_middleware
20,179
LDU_FT/lightning-viz/lightning-python/save_html
LDU_FT
[ "<BEGIN>\n## `enable_ipython`", "Enable plotting in the iPython notebook.", " Once enabled, all lightning plots will be automatically produced\n within the iPython notebook. They will also be available on\n your lightning server within the current session.\n<END>", "<BEGIN>\n## `disable_i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_html API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_html API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Save self-contained html to a file. Parameters ---------- filename : str The filename to save to
"Save self-contained html to a file.\n\n Parameters\n ----------\n filename : str\n The filename to save to"
55
false
lightning-viz/lightning-python
save_html
20,180
LDU_FT/aisthesis/pynance/straddle
LDU_FT
[ "<BEGIN>\n## `optimize`", "Return parameters for portfolio optimization.", " Parameters\n ----------\n exp_rets : ndarray\n Vector of expected returns for each investment..\n covs : ndarray\n Covariance matrix for the given investments.", " Returns\n ---------\n a : ndarray\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the straddle API. 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 straddle API. 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...
Metrics for evaluating a straddle. Parameters ------------ strike : numeric Strike price. expiry : date or date str (e.g. '2015-01-01') Expiration date. Returns ------------ metrics : DataFrame Metrics for evaluating straddle.
"Metrics for evaluating a straddle.\n\n Parameters\n ------------\n strike : numeric\n Strike price.\n expiry : date or date str (e.g. '2015-01-01')\n Expiration date.\n\n Returns\n ------------\n metrics : DataFrame\n Metrics for evaluat...
231
false
aisthesis/pynance
straddle
20,181
LDU_FT/twisted/txaws/put_object
LDU_FT
[ "<BEGIN>\n## `get_ca_certs`", "Retrieve a list of CAs at either the DEFAULT_CERTS_PATH or the env\n override, TXAWS_CERTS_PATH.", " In order to find .pem files, this function checks first for presence of the\n TXAWS_CERTS_PATH environment variable that should point to a directory\n containing cert f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the put_object API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the put_object API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Put an object in a bucket. An existing object with the same name will be replaced. @param bucket: The name of the bucket. @param object_name: The name of the object. @type object_name: L{unicode} @param data: The data to write. @param content_type: The type of data bein...
"Put an object in a bucket.\n\n An existing object with the same name will be replaced.\n\n @param bucket: The name of the bucket.\n @param object_name: The name of the object.\n @type object_name: L{unicode}\n @param data: The data to write.\n @param content_type: The type of ...
465
false
twisted/txaws
put_object
20,182
LDU_FT/Peter-Slump/python-keycloak-client/resource_create_ticket
LDU_FT
[ "<BEGIN>\n## `session`", "Get session object to benefit from connection pooling.", " http://docs.python-requests.org/en/master/user/advanced/#session-objects", " :rtype: requests.Session\n<END>", "<BEGIN>\n## `open_id_connect`", "Get OpenID Connect client", " :param str client_id:\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resource_create_ticket 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 resource_create_ticket API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Create a ticket form permission to resource. https://www.keycloak.org/docs/latest/authorization_services/index.html#_service_protection_permission_api_papi :param str token: user access token :param str id: resource id :param list scopes: scopes access is wanted :param dict cla...
"Create a ticket form permission to resource.\n\n https://www.keycloak.org/docs/latest/authorization_services/index.html#_service_protection_permission_api_papi\n\n :param str token: user access token\n :param str id: resource id\n :param list scopes: scopes access is wanted\n :param ...
118
false
Peter-Slump/python-keycloak-client
resource_create_ticket
20,183
LDU_FT/ApproxEng/approxeng.input/mixer
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 mixer API. Each 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 mixer API. Each 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...
Mix a pair of joystick axes, returning a pair of wheel speeds. This is where the mapping from joystick positions to wheel powers is defined, so any changes to how the robot drives should be made here, everything else is really just plumbing. :param yaw: Yaw axis value, ranges from -1.0 to 1.0 ...
"Mix a pair of joystick axes, returning a pair of wheel speeds. This is where the mapping from\n joystick positions to wheel powers is defined, so any changes to how the robot drives should\n be made here, everything else is really just plumbing.\n \n :param yaw: \n Yaw axis value, ranges from -1.0 t...
86
false
ApproxEng/approxeng.input
mixer
20,184
LDU_FT/e3krisztian/pyrene/do_directory_repo
LDU_FT
[ "<BEGIN>\n## `pip_install`", "Run pip install ...", " Explicitly ignores user's config.\n<END>", "<BEGIN>\n## `do_copy`", "Copy packages between repos", " copy SOURCE DESTINATION", " Where SOURCE can be either LOCAL-FILE or REPO:PACKAGE-SPEC\n DESTINATION can be either a REPO: ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_directory_repo API. 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 do_directory_repo API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
[Re]define REPO as directory package repository. directory_repo REPO
"[Re]define REPO as directory package repository.\n\n directory_repo REPO"
34
false
e3krisztian/pyrene
do_directory_repo
20,185
LDU_FT/Kaggle/kaggle-api/validate_no_duplicate_paths
LDU_FT
[ "<BEGIN>\n## `language`", "Sets the language of this KernelPushRequest.", " The language that the kernel is written in # noqa: E501", " :param language: The language of this KernelPushRequest. # noqa: E501\n :type: str\n<END>", "<BEGIN>\n## `kernel_type`", "Sets the kernel_type of t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_no_duplicate_paths 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 validate_no_duplicate_paths API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
ensure that the user has not provided duplicate paths in a list of resources. Parameters ========== resources: one or more resources to validate not duplicated
"ensure that the user has not provided duplicate paths in\n a list of resources.\n\n Parameters\n ==========\n resources: one or more resources to validate not duplicated"
304
false
Kaggle/kaggle-api
validate_no_duplicate_paths
20,186
LDU_FT/InQuest/python-sandboxapi/delete
LDU_FT
[ "<BEGIN>\n## `_request`", "Robustness wrapper. Tries up to 3 times to dance with the Sandbox API.", " :type uri: str\n :param uri: URI to append to base_url.\n :type params: dict\n :param params: Optional parameters for API.\n :type files: dict\n :param f...
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 ...
Delete the reports associated with the given item_id. :type item_id: int :param item_id: Report ID to delete. :rtype: bool :return: True on success, False otherwise.
"Delete the reports associated with the given item_id.\n\n :type item_id: int\n :param item_id: Report ID to delete.\n\n :rtype: bool\n :return: True on success, False otherwise."
93
false
InQuest/python-sandboxapi
delete
20,187
LDU_FT/pyviz/geoviews/groupby
LDU_FT
[ "<BEGIN>\n## `coord_to_dimension`", "Converts an iris coordinate to a HoloViews dimension.\n<END>", "<BEGIN>\n## `sort_coords`", "Sorts a list of DimCoords trying to ensure that\n dates and pressure levels appear first and the\n longitude and latitude appear last in the correct\n order.\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the groupby API. Each 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 groupby API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Groups the data by one or more dimensions returning a container indexed by the grouped dimensions containing slices of the cube wrapped in the group_type. This makes it very easy to break up a high-dimensional dataset into smaller viewable chunks.
"Groups the data by one or more dimensions returning a container\n indexed by the grouped dimensions containing slices of the\n cube wrapped in the group_type. This makes it very easy to\n break up a high-dimensional dataset into smaller viewable chunks."
106
false
pyviz/geoviews
groupby
20,188
LDU_FT/adamheins/r12/_label_desc
LDU_FT
[ "<BEGIN>\n## `search_for_port`", "Find the serial port the arm is connected to.\n<END>", "<BEGIN>\n## `read`", "Read data from the arm. Data is returned as a latin_1 encoded\n string, or raw bytes if 'raw' is True.\n<END>", "<BEGIN>\n## `dump`", "Dump all output currently in the arm's output qu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _label_desc API. 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 _label_desc API. 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...
Generic styler for a line consisting of a label and description.
"Generic styler for a line consisting of a label and description."
22
false
adamheins/r12
_label_desc
20,189
LDU_FT/pazz/alot/parser
LDU_FT
[ "<BEGIN>\n## `determine_sender`", "Inspect a given mail to reply/forward/bounce and find the most appropriate\n account to act from and construct a suitable From-Header to use.", " :param mail: the email to inspect\n :type mail: `email.message.Message`\n :param action: intended use case: one of \"re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parser API. Each 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 parser API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Parse command line arguments, validate them, and return them.
"Parse command line arguments, validate them, and return them."
454
false
pazz/alot
parser
20,190
LDU_FT/mattupstate/flask-social/delete_connection
LDU_FT
[ "<BEGIN>\n## `get_authorize_callback`", "Get a qualified URL for the provider to return to upon authorization", " param: endpoint: Absolute path to append to the application's host\n<END>", "<BEGIN>\n## `delete_connection`", "Remove a single connection to a provider for the specified user.\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_connection API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_connection API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Remove a single connection to a provider for the specified user.
"Remove a single connection to a provider for the specified user."
21
false
mattupstate/flask-social
delete_connection
20,191
LDU_FT/hfaran/Tornado-JSON/error
LDU_FT
[ "<BEGIN>\n## `_validate_example`", "Validates example against schema", " :returns: Formatted example if example exists and validates, otherwise None\n :raises ValidationError: If example does not validate against the schema\n<END>", "<BEGIN>\n## `_get_rh_methods`", "Yield all HTTP methods in ``rh`` th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the error API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the error API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
An error occurred in processing the request, i.e. an exception was thrown. :type data: A JSON-serializable object :param data: A generic container for any other information about the error, i.e. the conditions that caused the error, stack traces, etc. :type mes...
"An error occurred in processing the request, i.e. an exception was\n thrown.\n\n :type data: A JSON-serializable object\n :param data: A generic container for any other information about the\n error, i.e. the conditions that caused the error,\n stack traces, etc.\n :t...
61
false
hfaran/Tornado-JSON
error
20,192
LDU_FT/mozilla/FoxPuppet/is_tracking_shield_displayed
LDU_FT
[ "<BEGIN>\n## `is_tracking_shield_displayed`", "Tracking Protection shield.", " Returns:\n bool: True or False if the Tracking Shield is displayed.\n<END>", "<BEGIN>\n## `addon_name`", "Provide access to the add-on name.", " Returns:\n str: Add-on name.\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_tracking_shield_displayed API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_tracking_shield_displayed API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Tracking Protection shield. Returns: bool: True or False if the Tracking Shield is displayed.
"Tracking Protection shield.\n\n Returns:\n bool: True or False if the Tracking Shield is displayed."
36
false
mozilla/FoxPuppet
is_tracking_shield_displayed
20,193
LDU_FT/JosuaKrause/quick_server/handle_error
LDU_FT
[ "<BEGIN>\n## `json_dumps`", "A safe JSON dump function that provides correct diverging numbers for a\n ECMAscript consumer.\n<END>", "<BEGIN>\n## `msg`", "Prints a message from the server to the log file.\n<END>", "<BEGIN>\n## `setup_restart`", "Sets up restart functionality that doesn't keep the fi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_error API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_error API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Tries to send an 500 error after encountering an exception.
"Tries to send an 500 error after encountering an exception."
90
false
JosuaKrause/quick_server
handle_error
20,194
LDU_FT/bearyinnovative/bearychat.py/post
LDU_FT
[ "<BEGIN>\n## `request`", "Perform a request.", " Args:\n request_method: HTTP method for this request.\n api_method: API method name for this request.\n *args: Extra arguments to pass to the request.\n **kwargs: Extra keyword arguments to pass to the request.",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post API. Each 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 post API. Each 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...
Sends a POST request Returns: RTMResponse
"Sends a POST request\n\n Returns:\n RTMResponse"
68
false
bearyinnovative/bearychat.py
post
20,195
LDU_FT/martinpitt/python-dbusmock/AddUser
LDU_FT
[ "<BEGIN>\n## `AddAdapter`", "Convenience method to add a Bluetooth adapter", " You have to specify a device name which must be a valid part of an object\n path, e. g. \"hci0\", and an arbitrary system name (pretty hostname).", " Returns the new object path.\n<END>", "<BEGIN>\n## `AddDevice`", "Co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the AddUser API. Each 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 AddUser API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Convenience method to add a user. Return the object path of the new user.
"Convenience method to add a user.\n\n Return the object path of the new user."
188
false
martinpitt/python-dbusmock
AddUser
20,196
LDU_FT/brean/python-pathfinding/expand_path
LDU_FT
[ "<BEGIN>\n## `backtrace`", "Backtrace according to the parent records and return the path.\n (including both start and end nodes)\n<END>", "<BEGIN>\n## `bi_backtrace`", "Backtrace from start and end node, returns the path for bi-directional A*\n (including both start and end nodes)\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expand_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expand_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Given a compressed path, return a new path that has all the segments in it interpolated.
"Given a compressed path, return a new path that has all the segments\n in it interpolated."
37
false
brean/python-pathfinding
expand_path
20,197
LDU_FT/tethysplatform/condorpy/close_remote
LDU_FT
[ "<BEGIN>\n## `_get_all_descendants`", "traverses all descendants nodes\n :raises: CircularDependency if self is contained in descendants\n :return: a set containing all descendant nodes\n<END>", "<BEGIN>\n## `set_scheduler`", "Defines the remote scheduler", " Args:\n host (st...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close_remote API. 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 close_remote API. 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...
Cleans up and closes connection to remote server if defined.
"Cleans up and closes connection to remote server if defined."
52
false
tethysplatform/condorpy
close_remote
20,198
LDU_FT/jelmer/python-fastimport/_path_to_be_kept
LDU_FT
[ "<BEGIN>\n## `check_path`", "Check that a path is legal.", " :return: the path if all is OK\n :raise ValueError: if the path is illegal\n<END>", "<BEGIN>\n## `format_path`", "Format a path in utf8, quoting it if necessary.\n<END>", "<BEGIN>\n## `format_who_when`", "Format a tuple of name,email,sec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _path_to_be_kept API. 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 _path_to_be_kept API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Does the given path pass the filtering criteria?
"Does the given path pass the filtering criteria?"
100
false
jelmer/python-fastimport
_path_to_be_kept
20,199
LDU_FT/pytorch/ignite/simulate_values
LDU_FT
[ "<BEGIN>\n## `add_event_handler`", "Add an event handler to be executed when the specified event is fired.", " Args:\n event_name: An event to attach the handler to. Valid events are from :class:`~ignite.engine.Events`\n or any `event_name` added by :meth:`~ignite.engine.Engine....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the simulate_values API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the simulate_values API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Method to simulate scheduled values during num_events events. Args: num_events (int): number of events during the simulation. schedulers (list of ParamScheduler): list of parameter schedulers. durations (list of int): list of number of events that lasts a parameter scheduler...
"Method to simulate scheduled values during num_events events.\n\n Args:\n num_events (int): number of events during the simulation.\n schedulers (list of ParamScheduler): list of parameter schedulers.\n durations (list of int): list of number of events that lasts a parameter sch...
110
false
pytorch/ignite
simulate_values
20,200
LDU_FT/dhylands/rshell/recv_file_from_remote
LDU_FT
[ "<BEGIN>\n## `add_device`", "Adds a device to the list of devices we know about.\n<END>", "<BEGIN>\n## `is_micropython_usb_device`", "Checks a USB device to see if it looks like a MicroPython device.\n<END>", "<BEGIN>\n## `is_micropython_usb_port`", "Checks to see if the indicated portname is a MicroPytho...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the recv_file_from_remote 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 recv_file_from_remote API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Intended to be passed to the `remote` function as the xfer_func argument. Matches up with send_file_to_host.
"Intended to be passed to the `remote` function as the xfer_func argument.\n Matches up with send_file_to_host."
159
false
dhylands/rshell
recv_file_from_remote
20,201
LDU_FT/lowandrew/OLCTools/remove
LDU_FT
[ "<BEGIN>\n## `classes`", "Uses .tfa files included in the ResFinder database to determine the resistance class of gene matches\n :param targetpath: Path to database files\n :return: Dictionary of resistance class: gene set\n<END>", "<BEGIN>\n## `gene_name`", "Split the FASTA header string into i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Removes unnecessary temporary files generated by the pipeline
"Removes unnecessary temporary files generated by the pipeline"
432
false
lowandrew/OLCTools
remove
20,202
LDU_FT/nameko/nameko/wait
LDU_FT
[ "<BEGIN>\n## `run_services`", "Serves a number of services for a contextual block.\n The caller can specify a number of service classes then serve them either\n stopping (default) or killing them on exiting the contextual block.", " Example::", " with run_services(config, Foobar, Spam) as runn...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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. The extracted do...
Makes a blocking call to its queue_consumer until the message with the given correlation_id has been processed. By the time the blocking call exits, self.send() will have been called with the body of the received message (see :meth:`~nameko.rpc.ReplyListener.handle_message`). E...
"Makes a blocking call to its queue_consumer until the message\n with the given correlation_id has been processed.\n\n By the time the blocking call exits, self.send() will have been called\n with the body of the received message\n (see :meth:`~nameko.rpc.ReplyListener.handle_message`).\n\n ...
155
false
nameko/nameko
wait
20,203
LDU_FT/miguelgrinberg/python-socketio/on
LDU_FT
[ "<BEGIN>\n## `get_participants`", "Return an iterable with the active participants in a room.\n<END>", "<BEGIN>\n## `connect`", "Register a client connection to a namespace.\n<END>", "<BEGIN>\n## `pre_disconnect`", "Put the client in the to-be-disconnected list.", " This allows the client data st...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docu...
Register an event handler. :param event: The event name. It can be any string. The event names ``'connect'``, ``'message'`` and ``'disconnect'`` are reserved and should not be used. :param handler: The function that should be invoked to handle the ...
"Register an event handler.\n\n :param event: The event name. It can be any string. The event names\n ``'connect'``, ``'message'`` and ``'disconnect'`` are\n reserved and should not be used.\n :param handler: The function that should be invoked to handle the\n ...
172
false
miguelgrinberg/python-socketio
on
20,204
LDU_FT/aeguana/PyFileMaker/getScriptNames
LDU_FT
[ "<BEGIN>\n## `key_dict`", "Returns dict from_dict['unicode_save_field'] = 'original key with unicode'\n<END>", "<BEGIN>\n## `makeFMData`", "Returns FMData structure which is initialized by given dictionary\n<END>", "<BEGIN>\n## `_setMaxRecords`", "Specifies the maximum number of records you want returned ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getScriptNames API. 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 getScriptNames API. 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...
This function returns the list of layouts for the current db.
"This function returns the list of layouts for the current db."
52
false
aeguana/PyFileMaker
getScriptNames
20,205
LDU_FT/python-tap/tappy/handle_skipping_plan
LDU_FT
[ "<BEGIN>\n## `check`", "Check the status of all provided data and update the suite.\n<END>", "<BEGIN>\n## `handle_skipping_plan`", "Handle a plan that contains a SKIP directive.\n<END>", "<BEGIN>\n## `format_exception`", "Format an exception as diagnostics output.", " exception is the tuple as expect...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_skipping_plan API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_skipping_plan API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Handle a plan that contains a SKIP directive.
"Handle a plan that contains a SKIP directive."
47
false
python-tap/tappy
handle_skipping_plan
20,206
LDU_FT/chop-dbhi/varify-data-warehouse/update_sample_for_autocreated_cohorts
LDU_FT
[ "<BEGIN>\n## `read`", "Reads up to size bytes, but always completes the last line.\n<END>", "<BEGIN>\n## `readline`", "The size is ignored since a complete line must be read.\n<END>", "<BEGIN>\n## `process_line`", "Process a single record. This assumes only a single sample output.\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_sample_for_autocreated_cohorts API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_sample_for_autocreated_cohorts API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates ...
Manages adding/removing samples from autocreated cohorts.
"Manages adding/removing samples from autocreated cohorts."
53
false
chop-dbhi/varify-data-warehouse
update_sample_for_autocreated_cohorts
20,207
LDU_FT/sunt05/SuPy/run_supy
LDU_FT
[ "<BEGIN>\n## `_path_insensitive`", "Recursive part of path_insensitive to do the work.\n<END>", "<BEGIN>\n## `url_is_alive`", "Checks that a given URL is reachable.\n :param url: A URL\n :rtype: bool\n<END>", "<BEGIN>\n## `form_option`", "generate option name based suffix for URL", " :param str...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_supy API. 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 run_supy API. 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...
Perform supy simulation. Parameters ---------- df_forcing : pandas.DataFrame forcing data for all grids in `df_state_init`. df_state_init : pandas.DataFrame initial model states; or a collection of model states with multiple timestamps, whose last temporal record will be used as...
"Perform supy simulation.\n\n Parameters\n ----------\n df_forcing : pandas.DataFrame\n forcing data for all grids in `df_state_init`.\n df_state_init : pandas.DataFrame\n initial model states;\n or a collection of model states with multiple timestamps, whose last temporal record will b...
143
false
sunt05/SuPy
run_supy
20,208
LDU_FT/carpyncho/feets/fap_davies
LDU_FT
[ "<BEGIN>\n## `basic_animation`", "Plot a basic sine wave with oscillating amplitude\n<END>", "<BEGIN>\n## `lorenz_animation`", "Plot a 3D visualization of the dynamics of the Lorenz system\n<END>", "<BEGIN>\n## `_included_frames`", "frame_list should be a list of filenames\n<END>", "<BEGIN>\n## `_embedd...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fap_davies API. 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 fap_davies API. 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...
Davies upper-bound to the false alarm probability (Eqn 5 of Baluev 2008)
"Davies upper-bound to the false alarm probability\n\n (Eqn 5 of Baluev 2008)"
111
false
carpyncho/feets
fap_davies
20,209
LDU_FT/SeabornGames/Table/dict_to_obj
LDU_FT
[ "<BEGIN>\n## `list_to_obj`", ":param list_: list of list or list of dictionary to use as the\n source\n :param columns: list of strings to label the columns when\n converting to str\n :param row_columns: list of columns in the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dict_to_obj API. 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 dict_to_obj API. 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...
:param dict_: dict of dict or dict of list :param columns: list of strings to label the columns on print out :param row_columns: list of columns in the actually data :param tab: str of the tab to use before the row on printout :param key_on: str of the column to key each row on :...
":param dict_: dict of dict or dict of list\n :param columns: list of strings to label the columns on print out\n :param row_columns: list of columns in the actually data\n :param tab: str of the tab to use before the row on printout\n :param key_on: str of the column to key each row on\n ...
93
false
SeabornGames/Table
dict_to_obj
20,210
LDU_FT/idlesign/torrentool/announce_urls
LDU_FT
[ "<BEGIN>\n## `info`", "Print out information from .torrent file.\n<END>", "<BEGIN>\n## `create`", "Create torrent file from a single file or a directory.\n<END>", "<BEGIN>\n## `files`", "Files in torrent.", " List of namedtuples (filepath, size).", " :rtype: list[TorrentFile]\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the announce_urls API. 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 announce_urls API. 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...
List of lists of announce (tracker) URLs. First inner list is considered as primary announcers list, the following lists as back-ups. http://bittorrent.org/beps/bep_0012.html
"List of lists of announce (tracker) URLs.\n\n First inner list is considered as primary announcers list,\n the following lists as back-ups.\n\n http://bittorrent.org/beps/bep_0012.html"
52
false
idlesign/torrentool
announce_urls
20,211
LDU_FT/mikusjelly/apkutils/read
LDU_FT
[ "<BEGIN>\n## `skipNullPadding`", "不断地寻找 CHUNK_STRINGPOOL_TYPE,目前暂时没有遇到这种样本。\n<END>", "<BEGIN>\n## `is_zipfile`", "Quickly see if a file is a ZIP file by checking the magic number.", " The filename argument may be a file or file-like object too.\n<END>", "<BEGIN>\n## `readline`", "Read and return a li...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API. Each 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 read API. Each 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 file bytes (as a string) for name.
"Return file bytes (as a string) for name."
48
false
mikusjelly/apkutils
read
20,212
LDU_FT/trailofbits/protofuzz/from_string
LDU_FT
[ "<BEGIN>\n## `find_protoc`", "Traverse a path ($PATH by default) to find the protoc compiler\n<END>", "<BEGIN>\n## `from_string`", "Produce a Protobuf module from a string description.\r", " Return the module if successfully compiled, otherwise raise a BadProtobuf\r\n exception.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Produce a Protobuf module from a string description. Return the module if successfully compiled, otherwise raise a BadProtobuf exception.
"Produce a Protobuf module from a string description.\r\n\r\n Return the module if successfully compiled, otherwise raise a BadProtobuf\r\n exception."
52
false
trailofbits/protofuzz
from_string
20,213
LDU_FT/kajala/django-jutil/get_object_or_none
LDU_FT
[ "<BEGIN>\n## `se_iban_load_map`", "Loads Swedish monetary institution codes in CSV format.\n :param filename: CSV file name of the BIC definitions.\n Columns: Institution Name, Range Begin-Range End (inclusive), Account digits count\n :return: List of (bank name, clearing code begin, clearing code end, a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_object_or_none 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 get_object_or_none 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...
Returns model instance or None if not found. :param cls: Class or queryset :param kwargs: Filters for get() call :return: Object or None
"Returns model instance or None if not found.\n :param cls: Class or queryset\n :param kwargs: Filters for get() call\n :return: Object or None"
110
false
kajala/django-jutil
get_object_or_none
20,214
LDU_FT/pedrotgn/pyactor/lookup
LDU_FT
[ "<BEGIN>\n## `set_context`", "This function initializes the context of execution deciding which\n type of threads are being used: classic python threads or green\n threads, provided by Gevent.", " This should be called first of all in every execution, otherwise,\n the library would not work.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lookup API. Each 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 lookup API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Gets a new proxy that references to the actor of this host (only actors in this host) identified by the given ID. This method can be called remotely synchronously. :param str. aid: identifier of the actor you want. :return: :class:`~.Proxy` of the actor requiered. :raises: :cla...
"Gets a new proxy that references to the actor of this host\n (only actors in this host) identified by the given ID.\n\n This method can be called remotely synchronously.\n\n :param str. aid: identifier of the actor you want.\n :return: :class:`~.Proxy` of the actor requiered.\n :rais...
102
false
pedrotgn/pyactor
lookup
20,215
LDU_FT/danielhrisca/asammdf/_included_channels
LDU_FT
[ "<BEGIN>\n## `extract_cncomment_xml`", "extract *TX* tag or otherwise the *common_properties* from a xml comment", " Paremeters\n ----------\n comment : str\n xml string comment", " Returns\n -------\n comment : str\n extracted string\n<END>", "<BEGIN>\n## `matlab_compatible`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _included_channels 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 _included_channels 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...
get the minimum channels needed to extract all information from the channel group (for example keep onl the structure channel and exclude the strucutre fields channels) Parameters ---------- index : int channel group index Returns ------- inc...
"get the minimum channels needed to extract all information from the\n channel group (for example keep onl the structure channel and exclude the\n strucutre fields channels)\n\n Parameters\n ----------\n index : int\n channel group index\n\n Returns\n -------\...
381
false
danielhrisca/asammdf
_included_channels
20,216
LDU_FT/calmjs/calmjs.parse/pretty_print
LDU_FT
[ "<BEGIN>\n## `optimize_structure_handler`", "Produce an \"optimized\" version of handler for the dispatcher to\n limit reference lookups.\n<END>", "<BEGIN>\n## `optimize_layout_handler`", "Produce an \"optimized\" version of handler for the dispatcher to\n limit reference lookups.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pretty_print API. 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 pretty_print API. 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...
Simple pretty print function; returns a string rendering of an input AST of an ES5 Program. arguments ast The AST to pretty print indent_str The string used for indentations. Defaults to two spaces.
"Simple pretty print function; returns a string rendering of an input\n AST of an ES5 Program.\n\n arguments\n\n ast\n The AST to pretty print\n indent_str\n The string used for indentations. Defaults to two spaces."
253
false
calmjs/calmjs.parse
pretty_print
20,217
LDU_FT/gmr/tinman/prepare
LDU_FT
[ "<BEGIN>\n## `main`", "Invoked by the script installed by setuptools.\n<END>", "<BEGIN>\n## `enable_debug`", "If the cli arg for foreground is set, set the configuration option\n for debug.\n<END>", "<BEGIN>\n## `insert_paths`", "Inserts a base path into the sys.path list if one is specified in\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Prepare the incoming request, checking to see the request is sending JSON content in the request body. If so, the content is decoded and assigned to the json_arguments attribute.
"Prepare the incoming request, checking to see the request is sending\n JSON content in the request body. If so, the content is decoded and\n assigned to the json_arguments attribute."
270
false
gmr/tinman
prepare
20,218
LDU_FT/bw2/ConfigArgParse/convert_item_to_command_line_arg
LDU_FT
[ "<BEGIN>\n## `init_argument_parser`", "Creates a global ArgumentParser instance with the given name,\n passing any args other than \"name\" to the ArgumentParser constructor.\n This instance can then be retrieved using get_argument_parser(..)\n<END>", "<BEGIN>\n## `get_argument_parser`", "Returns the gl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_item_to_command_line_arg API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_item_to_command_line_arg API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
Converts a config file or env var key + value to a list of commandline args to append to the commandline. Args: action: The argparse Action object for this setting, or None if this config file setting doesn't correspond to any defined configargparse arg. ...
"Converts a config file or env var key + value to a list of\n commandline args to append to the commandline.\n\n Args:\n action: The argparse Action object for this setting, or None if this\n config file setting doesn't correspond to any defined\n configargparse ar...
42
false
bw2/ConfigArgParse
convert_item_to_command_line_arg
20,219
LDU_FT/jwodder/javaproperties/dumps
LDU_FT
[ "<BEGIN>\n## `load_xml`", "r\"\"\"\n Parse the contents of the file-like object ``fp`` as an XML properties file\n and return a `dict` of the key-value pairs.", " Beyond basic XML well-formedness, `load_xml` only checks that the root\n element is named \"``properties``\" and that all of its ``<entry...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dumps API. Each 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 dumps API. Each 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...
Convert a series of key-value pairs to a text string in simple line-oriented ``.properties`` format. :param props: A mapping or iterable of ``(key, value)`` pairs to serialize. All keys and values in ``props`` must be text strings. If ``sort_keys`` is `False`, the entries are output in iterati...
"Convert a series of key-value pairs to a text string in simple\n line-oriented ``.properties`` format.\n\n :param props: A mapping or iterable of ``(key, value)`` pairs to serialize.\n All keys and values in ``props`` must be text strings. If\n ``sort_keys`` is `False`, the entries are output in i...
115
false
jwodder/javaproperties
dumps
20,220
LDU_FT/wrobstory/vincent/_numpy_to_values
LDU_FT
[ "<BEGIN>\n## `fill_opacity`", "ValueRef : int or float, opacity of the fill (0 to 1)\n<END>", "<BEGIN>\n## `stroke_width`", "ValueRef : int, width of the stroke in pixels\n<END>", "<BEGIN>\n## `stroke_opacity`", "ValueRef : number, opacity of the stroke (0 to 1)\n<END>", "<BEGIN>\n## `size`", "ValueRe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _numpy_to_values API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _numpy_to_values API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Convert a NumPy array to values attribute
"Convert a NumPy array to values attribute"
139
false
wrobstory/vincent
_numpy_to_values
20,221
LDU_FT/workhorsy/py-cpuinfo/_get_cpu_info_from_proc_cpuinfo
LDU_FT
[ "<BEGIN>\n## `_actual_get_cpu_info_from_cpuid`", "Warning! This function has the potential to crash the Python runtime.\n\tDo not call it directly. Use the _get_cpu_info_from_cpuid function instead.\n\tIt will safely call this function in another process.\n<END>", "<BEGIN>\n## `_get_cpu_info_from_cpuid`", "Re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_cpu_info_from_proc_cpuinfo 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 _get_cpu_info_from_proc_cpuinfo API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
Returns the CPU info gathered from /proc/cpuinfo. Returns {} if /proc/cpuinfo is not found.
"Returns the CPU info gathered from /proc/cpuinfo.\n\tReturns {} if /proc/cpuinfo is not found."
34
false
workhorsy/py-cpuinfo
_get_cpu_info_from_proc_cpuinfo
20,222
LDU_FT/ckoepp/TwitterSearch/set_contributor_details
LDU_FT
[ "<BEGIN>\n## `set_source_filter`", "Only search for tweets entered via given source", " :param source: String. Name of the source to search for. An example \\\n would be ``source=twitterfeed`` for tweets submitted via TwitterFeed\n :raises: TwitterSearchException\n<END>", "<BEGIN>\n## `ad...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_contributor_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...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_contributor_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...
Sets 'contributor_details' parameter used to enhance the \ contributors element of the status response to include \ the screen_name of the contributor. By default only \ the user_id of the contributor is included :param contdetails: Boolean triggering the usage of the parameter ...
"Sets 'contributor_details' parameter used to enhance the \\\n contributors element of the status response to include \\\n the screen_name of the contributor. By default only \\\n the user_id of the contributor is included\n\n :param contdetails: Boolean triggering the usage of the parameter...
91
false
ckoepp/TwitterSearch
set_contributor_details
20,223
LDU_FT/klen/zeta-library/_image_url
LDU_FT
[ "<BEGIN>\n## `watch`", "Watch directory for changes and auto pack sources\n<END>", "<BEGIN>\n## `pack`", "Parse file or dir, import css, js code and save with prefix\n<END>", "<BEGIN>\n## `_invert`", "Returns the inverse (negative) of a color.\n The red, green, and blue values are inverted, while the o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _image_url API. 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 _image_url API. 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...
Generates a path to an asset found relative to the project's images directory.
"Generates a path to an asset found relative to the project's images\n directory."
56
false
klen/zeta-library
_image_url
20,224
LDU_FT/jespino/anillo/wrap_cors
LDU_FT
[ "<BEGIN>\n## `url`", "Simple helper for build a url, and return anillo\n url spec hash map (dictionary)", " It can be used in this way:", " urls = [\n url(\"/<int:year>\", index, methods=[\"get\", \"post\"]),\n url(\"/<int:year>\", index, methods=[\"get\", \"post\"])\n ]", " Thi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wrap_cors API. 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 wrap_cors API. 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...
A middleware that allow CORS calls, by adding the headers Access-Control-Allow-Origin and Access-Control-Allow-Headers. This middlware accepts two optional parameters `allow_origin` and `allow_headers` for customization of the headers values. By default will be `*` and a set of `[Origin, X-Requested-Wit...
"A middleware that allow CORS calls, by adding the\n headers Access-Control-Allow-Origin and Access-Control-Allow-Headers.\n This middlware accepts two optional parameters `allow_origin` and\n `allow_headers` for customization of the headers values. By default\n will be `*` and a set of `[Origin, X-Requeste...
54
false
jespino/anillo
wrap_cors
20,225
LDU_FT/clalancette/pycdlib/add_new_entry
LDU_FT
[ "<BEGIN>\n## `parse`", "A method to parse an ISO9660 Path Table Record out of a string.", " Parameters:\n data - The string to parse.\n Returns:\n Nothing.\n<END>", "<BEGIN>\n## `_record`", "An internal method to generate a string representing this Path Table Record.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_new_entry API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_new_entry API. 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...
A method to add a completely new entry to the list of entries of this header. Parameters: entry - The new EltoritoEntry object to add to the list of entries. Returns: Nothing.
"A method to add a completely new entry to the list of entries of this\n header.\n\n Parameters:\n entry - The new EltoritoEntry object to add to the list of entries.\n Returns:\n Nothing."
1,112
true
clalancette/pycdlib
add_new_entry
20,226
LDU_FT/laplacesdemon/django-social-friends-finder/get_context_data
LDU_FT
[ "<BEGIN>\n## `fetch_friends`", "fetches the friends from twitter using the\n information on django-social-auth models\n user is an instance of UserSocialAuth", " Returns:\n collection of friend objects fetched from facebook\n<END>", "<BEGIN>\n## `fetch_friend_ids`", "fethces ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_context_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_context_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
checks if there is SocialFrind model record for the user if not attempt to create one if all fail, redirects to the next page
"checks if there is SocialFrind model record for the user\n if not attempt to create one\n if all fail, redirects to the next page"
35
false
laplacesdemon/django-social-friends-finder
get_context_data
20,227
LDU_FT/unixorn/haze/readMyEC2Tag
LDU_FT
[ "<BEGIN>\n## `system_call`", "Run a command and return stdout.", " Would be better to use subprocess.check_output, but this works on 2.6,\n which is still the system Python on CentOS 7.\n<END>", "<BEGIN>\n## `getAWSAccountID`", "Print an instance's AWS account number or 0 when not in EC2\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the readMyEC2Tag API. 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 readMyEC2Tag API. 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...
Load an EC2 tag for the running instance & print it. :param str tagName: Name of the tag to read :param connection: Optional boto connection
"Load an EC2 tag for the running instance & print it.\n\n :param str tagName: Name of the tag to read\n :param connection: Optional boto connection"
20
false
unixorn/haze
readMyEC2Tag
20,228
LDU_FT/pricingassistant/mongokat/exists
LDU_FT
[ "<BEGIN>\n## `_get_string`", "Decode a BSON string to python unicode string.\n<END>", "<BEGIN>\n## `_get_object`", "Decode a BSON subdocument to opts.document_class or bson.dbref.DBRef.\n<END>", "<BEGIN>\n## `_get_boolean`", "Decode a BSON true/false to python True/False.\n<END>", "<BEGIN>\n## `_get_dat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exists API. Each 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 exists API. Each 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 True if the search matches at least one document
"Returns True if the search matches at least one document"
55
false
pricingassistant/mongokat
exists
20,229
LDU_FT/BerkeleyAutomation/perception/frames
LDU_FT
[ "<BEGIN>\n## `frames`", "Retrieve a new frame from the PhoXi and convert it to a ColorImage,\n a DepthImage, and an IrImage.", " Returns\n -------\n :obj:`tuple` of :obj:`ColorImage`, :obj:`DepthImage`, :obj:`IrImage`, :obj:`numpy.ndarray`\n The ColorImage, DepthImage, and...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the frames API. Each 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 frames API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Retrieve a new frame from the Ensenso and convert it to a ColorImage, a DepthImage, IrImage is always none for this type Returns ------- :obj:`tuple` of :obj:`ColorImage`, :obj:`DepthImage`, :obj:`IrImage`, :obj:`numpy.ndarray` The ColorImage, DepthImage, and IrImage of the ...
"Retrieve a new frame from the Ensenso and convert it to a ColorImage,\n a DepthImage, IrImage is always none for this type\n\n Returns\n -------\n :obj:`tuple` of :obj:`ColorImage`, :obj:`DepthImage`, :obj:`IrImage`, :obj:`numpy.ndarray`\n The ColorImage, DepthImage, and IrImage ...
657
false
BerkeleyAutomation/perception
frames
20,230
LDU_FT/imu-hupeng/cos-python3-sdk/create_folder
LDU_FT
[ "<BEGIN>\n## `create_folder`", "创建目录(https://www.qcloud.com/document/product/436/6061)", " :param dir_name:要创建的目录的目录的名称\n :return 返回True创建成功,返回False创建失败\n<END>", "<BEGIN>\n## `list_folder`", "列目录(https://www.qcloud.com/document/product/436/6062)", " :param dir_name:文件夹名称\n :par...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_folder API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_folder API. 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...
创建目录(https://www.qcloud.com/document/product/436/6061) :param dir_name:要创建的目录的目录的名称 :return 返回True创建成功,返回False创建失败
"创建目录(https://www.qcloud.com/document/product/436/6061)\n\n :param dir_name:要创建的目录的目录的名称\n :return 返回True创建成功,返回False创建失败"
24
false
imu-hupeng/cos-python3-sdk
create_folder
20,231
LDU_FT/mypebble/django-feature-flipper/show_feature
LDU_FT
[ "<BEGIN>\n## `show_feature`", "Return True/False whether the assigned feature can be displayed. This is\n primarily used in the template tag to determine whether to render the\n content inside itself.\n<END>", "<BEGIN>\n## `do_flipper`", "The flipper tag takes two arguments: the user to look up and the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the show_feature API. 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 show_feature API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Return True or False for the given feature.
"Return True or False for the given feature."
10
false
mypebble/django-feature-flipper
show_feature
20,232
LDU_FT/dhain/potpy/add
LDU_FT
[ "<BEGIN>\n## `inject`", "Inject arguments from context into a callable.", " :param func: The callable to inject arguments into.\n :param \\*\\*kwargs: Specify values to override context items.\n<END>", "<BEGIN>\n## `match`", "Match a string against the template.", " If the string matc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Add a handler to the route. :param handler: The "handler" callable to add. :param name: Optional. When specified, the return value of this handler will be added to the context under ``name``. :param exception_handlers: Optional. A list of ``(types, handler)`` tuples, whe...
"Add a handler to the route.\n\n :param handler: The \"handler\" callable to add.\n :param name: Optional. When specified, the return value of this\n handler will be added to the context under ``name``.\n :param exception_handlers: Optional. A list of ``(types, handler)``\n tu...
45
false
dhain/potpy
add
20,233
LDU_FT/voicecom/pgtool/cmd_copy
LDU_FT
[ "<BEGIN>\n## `quote_names`", "psycopg2 doesn't know how to quote identifier names, so we ask the server\n<END>", "<BEGIN>\n## `execute_catch`", "Run a query, but ignore any errors. For error recovery paths where the error handler should not raise another.\n<END>", "<BEGIN>\n## `cmd_copy`", "Uses CREATE DA...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cmd_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 extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cmd_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 extracte...
Uses CREATE DATABASE ... TEMPLATE to create a duplicate of a database. Additionally copies over database-specific settings. When used with --force, an existing database with the same name as DEST is replaced, the original is renamed out of place in the form DEST_old_YYYYMMDD (unless --no-backup is specifie...
"Uses CREATE DATABASE ... TEMPLATE to create a duplicate of a database. Additionally copies over database-specific\n settings.\n\n When used with --force, an existing database with the same name as DEST is replaced, the original is renamed out of\n place in the form DEST_old_YYYYMMDD (unless --no-backup is spe...
20
false
voicecom/pgtool
cmd_copy
20,234
LDU_FT/openid/python-openid/parseExtensionArgs
LDU_FT
[ "<BEGIN>\n## `queryURL`", "Build a URL to query the proxy resolver.", " @param xri: An XRI to resolve.\n @type xri: unicode", " @param service_type: The service type to resolve, if you desire\n service endpoint selection. A service type is a URI.\n @type service_type: s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parseExtensionArgs 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 parseExtensionArgs 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...
Parse the provider authentication policy arguments into the internal state of this object @param args: unqualified provider authentication policy arguments @param strict: Whether to raise an exception when bad data is encountered @returns: None. The data is par...
"Parse the provider authentication policy arguments into the\n internal state of this object\n\n @param args: unqualified provider authentication policy\n arguments\n\n @param strict: Whether to raise an exception when bad data is\n encountered\n\n @returns: None. The d...
828
false
openid/python-openid
parseExtensionArgs
20,235
LDU_FT/aloetesting/aloe_django/dump_emails
LDU_FT
[ "<BEGIN>\n## `run_from_argv`", "Set the default Gherkin test runner for its options to be parsed.\n<END>", "<BEGIN>\n## `django_url`", "The URL for a page from the test server.", " :param step: A Gherkin step\n :param url: If specified, the relative URL to append.\n<END>", "<BEGIN>\n## `_models_gene...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dump_emails API. 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 dump_emails API. 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...
Show the sent emails' tested parts, to aid in debugging.
"Show the sent emails' tested parts, to aid in debugging."
58
false
aloetesting/aloe_django
dump_emails
20,236
LDU_FT/wdm0006/git-pandas/__check_extension
LDU_FT
[ "<BEGIN>\n## `repo_name`", "Returns a DataFrame of the repo names present in this project directory", " :return: DataFrame\n<END>", "<BEGIN>\n## `coverage`", "Will return a DataFrame with coverage information (if available) for each repo in the project).", " If there is a .coverage file avai...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __check_extension API. 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_extension API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Internal method to filter a list of file changes by extension and ignore_dirs. :param files: :param ignore_globs: a list of globs to ignore (if none falls back to extensions and ignore_dir) :param include_globs: a list of globs to include (if none, includes all). :return: dict
"Internal method to filter a list of file changes by extension and ignore_dirs.\n\n :param files:\n :param ignore_globs: a list of globs to ignore (if none falls back to extensions and ignore_dir)\n :param include_globs: a list of globs to include (if none, includes all).\n :return: dict"
123
false
wdm0006/git-pandas
__check_extension
20,237
LDU_FT/tensorflow/mesh/cumprod_to_tensor_axis
LDU_FT
[ "<BEGIN>\n## `make_layer_stack`", "Configurable layer stack.", " Args:\n layers: a list of subclasses of TransformerLayer\n num_layers: an integer\n Returns:\n a LayerStack\n<END>", "<BEGIN>\n## `make_bitransformer`", "Gin-configurable bitransformer constructor.", " In your config file you nee...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cumprod_to_tensor_axis 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 cumprod_to_tensor_axis API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Maximum tensor axis i such that self.cumprod[i] == cumprod, or None.
"Maximum tensor axis i such that self.cumprod[i] == cumprod, or None."
958
false
tensorflow/mesh
cumprod_to_tensor_axis
20,238
LDU_FT/datamachine/twx/send_photo
LDU_FT
[ "<BEGIN>\n## `_ige`", "Given a key, given an iv, and message\n do whatever operation asked in the operation field.\n Operation will be checked for: \"decrypt\" and \"encrypt\" strings.\n Returns the message encrypted/decrypted.\n message must be a multiple by 16 bytes (for division in 16 byte bloc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_photo API. 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 send_photo API. 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...
Send photo to this peer. :param photo: File path to photo to send. :param caption: Caption for photo :param reply: Message object or message_id to reply to. :param on_success: Callback to call when call is complete. :type reply: int or Message
"Send photo to this peer.\n :param photo: File path to photo to send.\n :param caption: Caption for photo\n :param reply: Message object or message_id to reply to.\n :param on_success: Callback to call when call is complete.\n\n :type reply: int or Message"
94
false
datamachine/twx
send_photo
20,239
LDU_FT/YosaiProject/yosai/check_permission
LDU_FT
[ "<BEGIN>\n## `on_successful_login`", "Reacts to the successful login attempt by first always\n forgetting any previously stored identity. Then if the authc_token\n is a ``RememberMe`` type of token, the associated identity\n will be remembered for later retrieval during a new user session.",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_permission API. 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_permission API. 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 permission_s: a collection of 1..N permissions :type permission_s: List of authz_abcs.Permission objects or Strings :param logical_operator: indicates whether all or at least one permission check is true (any) :type: any OR all (from python stdlib) ...
":param permission_s: a collection of 1..N permissions\n :type permission_s: List of authz_abcs.Permission objects or Strings\n\n :param logical_operator: indicates whether all or at least one\n permission check is true (any)\n :type: any OR all (from python stdlib...
335
false
YosaiProject/yosai
check_permission
20,240
LDU_FT/MisterY/pydatum/subtract_weeks
LDU_FT
[ "<BEGIN>\n## `add_months`", "Add a number of months to the given date\n<END>", "<BEGIN>\n## `from_iso_long_date`", "Parse ISO date string (YYYY-MM-DDTHH:mm:ss)\n<END>", "<BEGIN>\n## `to_iso_string`", "Returns full ISO string for the given date\n<END>", "<BEGIN>\n## `end_of_month`", "Provides end of th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subtract_weeks API. 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 subtract_weeks API. 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...
Subtracts number of weeks from the current value
"Subtracts number of weeks from the current value"
18
false
MisterY/pydatum
subtract_weeks
20,241
LDU_FT/pndurette/gTTS/tts_langs
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 tts_langs API. 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 tts_langs API. 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...
Languages Google Text-to-Speech supports. Returns: dict: A dictionnary of the type `{ '<lang>': '<name>'}` Where `<lang>` is an IETF language tag such as `en` or `pt-br`, and `<name>` is the full English name of the language, such as `English` or `Portuguese (Brazil)`. The dic...
"Languages Google Text-to-Speech supports.\n\n Returns:\n dict: A dictionnary of the type `{ '<lang>': '<name>'}`\n\n 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 `English` or `Portuguese (Brazil)`.\n\n ...
68
false
pndurette/gTTS
tts_langs
20,242
LDU_FT/openpermissions/koi/_wrap_class
LDU_FT
[ "<BEGIN>\n## `define_options`", "Define the options from default.conf dynamically\n<END>", "<BEGIN>\n## `log_config`", "Logs the config used to start the application\n<END>", "<BEGIN>\n## `ssl_server_options`", "ssl options for tornado https server\n these options are defined in each application's defa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _wrap_class API. 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 _wrap_class API. 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...
Decorate each HTTP verb method to check if the request is authenticated :param request_handler: a tornado.web.RequestHandler instance
"Decorate each HTTP verb method to check if the request is authenticated\n\n :param request_handler: a tornado.web.RequestHandler instance"
122
false
openpermissions/koi
_wrap_class
20,243
LDU_FT/ARMmbed/mbed-connector-api-python/putResourceValue
LDU_FT
[ "<BEGIN>\n## `getConnectorVersion`", "GET the current Connector version.", "\t\t:returns: asyncResult object, populates error and result fields\n\t\t:rtype: asyncResult\n<END>", "<BEGIN>\n## `getEndpoints`", "Get list of all endpoints on the domain.", "\t\t:param str typeOfEndpoint: Optional filter endpo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the putResourceValue API. 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 putResourceValue API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Put a value to a resource on an endpoint :param str ep: name of endpoint :param str res: name of resource :param str data: data to send via PUT :param fnptr cbfn: Optional - callback funtion to call when operation is completed :return: successful ``.status_code`` / ``.is_done``. Check the ``.error`` :rty...
"Put a value to a resource on an endpoint\n\t\t\n\t\t:param str ep: name of endpoint\n\t\t:param str res: name of resource\n\t\t:param str data: data to send via PUT\n\t\t:param fnptr cbfn: Optional - callback funtion to call when operation is completed\n\t\t:return: successful ``.status_code`` / ``.is_done``. Check th...
56
false
ARMmbed/mbed-connector-api-python
putResourceValue
20,244
LDU_FT/estnltk/estnltk/convert_to_gt
LDU_FT
[ "<BEGIN>\n## `templatesCollector`", "leaves related articles and wikitables in place\n<END>", "<BEGIN>\n## `assert_legal_arguments`", "Assert that PrettyPrinter arguments are correct.", " Raises\n ------\n ValueError\n In case there are unknown arguments or a single layer is mapped to more t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_to_gt API. 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 convert_to_gt API. 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...
Converts all words in a morphologically analysed Text from FS format to giellatekno (GT) format, and stores in a new layer named GT_WORDS. If the keyword argument *layer_name=='words'* , overwrites the old 'words' layer with the new layer containing GT format annotations. Parameters...
"Converts all words in a morphologically analysed Text from FS format to \n giellatekno (GT) format, and stores in a new layer named GT_WORDS. \n If the keyword argument *layer_name=='words'* , overwrites the old 'words' \n layer with the new layer containing GT format annotations. \n\n Para...
1,003
false
estnltk/estnltk
convert_to_gt
20,245
LDU_FT/n8henrie/pycookiecheat/chrome_cookies
LDU_FT
[ "<BEGIN>\n## `clean`", "r\"\"\"Strip padding from decrypted value.", " Remove number indicated by padding\n e.g. if last is '\\x0e' then ord('\\x0e') == 14, so take off 14.", " Args:\n decrypted: decrypted value\n Returns:\n Decrypted stripped of junk padding\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the chrome_cookies API. 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 chrome_cookies API. 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...
Retrieve cookies from Chrome/Chromium on OSX or Linux. Args: url: Domain from which to retrieve cookies, starting with http(s) cookie_file: Path to alternate file to search for cookies browser: Name of the browser's cookies to read ('Chrome' or 'Chromium') curl_cookie_file: Path to ...
"Retrieve cookies from Chrome/Chromium on OSX or Linux.\n\n Args:\n url: Domain from which to retrieve cookies, starting with http(s)\n cookie_file: Path to alternate file to search for cookies\n browser: Name of the browser's cookies to read ('Chrome' or 'Chromium')\n curl_cookie_file: P...
20
false
n8henrie/pycookiecheat
chrome_cookies
20,246
LDU_FT/ranaroussi/qtpylib/run
LDU_FT
[ "<BEGIN>\n## `load_cli_args`", "Parse command line arguments and return only the non-default ones", " :Retruns: dict\n a dict of any non-default args passed on the command-line.\n<END>", "<BEGIN>\n## `run`", "Starts the reporting module", " Makes the dashboard web app available vi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Starts the blotter Connects to the TWS/GW, processes and logs market data, and broadcast it over TCP via ZeroMQ (which algo subscribe to)
"Starts the blotter\n\n Connects to the TWS/GW, processes and logs market data,\n and broadcast it over TCP via ZeroMQ (which algo subscribe to)"
155
false
ranaroussi/qtpylib
run
20,247
LDU_FT/xmunoz/sodapy/upsert
LDU_FT
[ "<BEGIN>\n## `_raise_for_status`", "Custom raise_for_status with more appropriate error message.\n<END>", "<BEGIN>\n## `_download_file`", "Utility function that downloads a chunked response from the specified url to a local path.\n This method is suitable for larger downloads.\n<END>", "<BEGIN>\n## `data...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upsert API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upsert API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Insert, update or delete data to/from an existing dataset. Currently supports json and csv file objects. See here for the upsert documentation: http://dev.socrata.com/publishers/upsert.html
"Insert, update or delete data to/from an existing dataset. Currently\n supports json and csv file objects. See here for the upsert\n documentation:\n http://dev.socrata.com/publishers/upsert.html"
41
false
xmunoz/sodapy
upsert
20,248
LDU_FT/phn/lineid_plot/prepare_axes
LDU_FT
[ "<BEGIN>\n## `color_text_boxes`", "Color text boxes.", " Instead of this function, one can pass annotate_kwargs and plot_kwargs to\n plot_line_ids function.\n<END>", "<BEGIN>\n## `color_lines`", "Color lines.", " Instead of this function, one can pass annotate_kwargs and plot_kwargs to\n plot_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare_axes API. 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 prepare_axes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Create fig and axes if needed and layout axes in fig.
"Create fig and axes if needed and layout axes in fig."
44
false
phn/lineid_plot
prepare_axes
20,249
LDU_FT/MacHu-GWU/angora-project/kv
LDU_FT
[ "<BEGIN>\n## `run_backup`", "The backup utility method.", " :param root_dir: the directory you want to backup\n :param ignore: file or directory defined in this list will be ignored.\n :param ignore_ext: file with extensions defined in this list will be ignored.\n :param ignore_pattern: any file or ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the kv API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the kv API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docu...
Equivalent to dict.items(). Usage:: >>> for key, node in DictTree.kv(d): >>> print(key, DictTree.getattr(node, "population")) MD 200000 VA 100000
"Equivalent to dict.items().\n \n Usage::\n \n >>> for key, node in DictTree.kv(d):\n >>> print(key, DictTree.getattr(node, \"population\")) \n MD 200000\n VA 100000"
616
false
MacHu-GWU/angora-project
kv
20,250
LDU_FT/datasift/datasift-python/batch
LDU_FT
[ "<BEGIN>\n## `validate`", "Validate the given CSDL", " :param csdl: The CSDL to be validated for analysis\n :type csdl: str\n :param service: The service for this API call (facebook, etc)\n :type service: str\n :return: dict of REST API output with headers ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the batch API. Each 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 batch API. Each 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...
Upload data to the given soruce :param source_id: The ID of the source to upload to :type source_id: str :param data: The data to upload to the source :type data: list :return: dict of REST API output with headers attached :rtype: :class:`~datasif...
"Upload data to the given soruce\n\n :param source_id: The ID of the source to upload to\n :type source_id: str\n :param data: The data to upload to the source\n :type data: list\n :return: dict of REST API output with headers attached\n :rtype: :class:`...
238
false
datasift/datasift-python
batch
20,251
LDU_FT/facetoe/zenpy/related
LDU_FT
[ "<BEGIN>\n## `agents`", "| Description: IDs of agents involved in the chat\n<END>", "<BEGIN>\n## `department`", "| Description: The ID of the department to which the chat is directed\n<END>", "<BEGIN>\n## `zendesk_ticket`", "| Description: The ID of the Zendesk Support ticket created from this chat. Av...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the related API. Each 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 related API. Each 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 the UserRelated information for the requested User :param user: User object or id :return: UserRelated
"Returns the UserRelated information for the requested User\n\n :param user: User object or id\n :return: UserRelated"
321
false
facetoe/zenpy
related
20,252
LDU_FT/WalletGuild/desw/confirm_send
LDU_FT
[ "<BEGIN>\n## `confirm_send`", "Confirm that a send has completed. Does not actually check confirmations,\n but instead assumes that if this is called, the transaction has been\n completed. This is because we assume our own sends are safe.", " :param session:\n :param str ref_id: The updated ref_id f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the confirm_send API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the confirm_send API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Confirm that a send has completed. Does not actually check confirmations, but instead assumes that if this is called, the transaction has been completed. This is because we assume our own sends are safe. :param session: :param str ref_id: The updated ref_id for the transaction in question :param st...
"Confirm that a send has completed. Does not actually check confirmations,\n but instead assumes that if this is called, the transaction has been\n completed. This is because we assume our own sends are safe.\n\n :param session:\n :param str ref_id: The updated ref_id for the transaction in question\n :p...
28
false
WalletGuild/desw
confirm_send
20,253
LDU_FT/NetworkAutomation/jaide/commit
LDU_FT
[ "<BEGIN>\n## `check_instance`", "Wrapper that tests the type of _session.", " Purpose: This decorator function is used by all functions within\n | the Jaide class that interact with a device to ensure the\n | proper session type is in use. If it is not, it will\n | ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the commit API. Each 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 commit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Execute a commit against the device. Purpose: This function will send set commands to a device, and commit | the changes. Options exist for confirming, comments, | synchronizing, checking, blank commits, or delaying to a later | time/date. @param jaide: The jaide connection to...
"Execute a commit against the device.\n\n Purpose: This function will send set commands to a device, and commit\n | the changes. Options exist for confirming, comments,\n | synchronizing, checking, blank commits, or delaying to a later\n | time/date.\n\n @param jaide: The jaide conne...
191
false
NetworkAutomation/jaide
commit
20,254
LDU_FT/robhowley/nhlscrapi/head_to_head
LDU_FT
[ "<BEGIN>\n## `totals`", "Computes and returns dictionary containing home/away by player, shots and face-off totals", " :returns: dict of the form ``{ 'home/away': { 'all_keys': w_numeric_data } }``\n<END>", "<BEGIN>\n## `filter_players`", "Return the subset home and away players that satisfy the prov...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the head_to_head API. 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 head_to_head API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Return the head-to-head face-off outcomes between two players. If the matchup didn't happen, ``{ }`` is returned. :param home_num: the number of the home team player :param away_num: the number of the away team player :returns: dict, either ``{ }`` or the following ...
"Return the head-to-head face-off outcomes between two players.\n If the matchup didn't happen, ``{ }`` is returned.\n \n :param home_num: the number of the home team player\n :param away_num: the number of the away team player\n :returns: dict, either ``{ }`` or the following\n ...
126
false
robhowley/nhlscrapi
head_to_head
20,255
LDU_FT/collectiveacuity/labPack/export
LDU_FT
[ "<BEGIN>\n## `_delete`", "a helper method for non-blocking deletion of files\r", " :param _file_path: string with path to file to remove \r\n :param _method_title: string with name of method calling _delete\r\n :param _record_key: string with name of record key to delete\r\n :return:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the export API. Each 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 export API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
a method to export all the records in collection to another platform :param storage_client: class object with storage client methods :return: string with exit message
"a method to export all the records in collection to another platform\n \n :param storage_client: class object with storage client methods\n :return: string with exit message"
886
false
collectiveacuity/labPack
export
20,256
LDU_FT/romanorac/discomll/map_fit
LDU_FT
[ "<BEGIN>\n## `random_init_map`", "Assign datapoint `e` randomly to one of the `k` clusters.\n<END>", "<BEGIN>\n## `estimate_map`", "Find the cluster `i` that is closest to the datapoint `e`.\n<END>", "<BEGIN>\n## `estimate_reduce`", "Estimate the cluster centers for each cluster.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the map_fit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the map_fit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Function calculates sigmoid function (g) for every sample. With g it calculates part of Hessian matrix and gradient, aggregates and output them. It also calculates J function which is needed for checking the convergence of parameters theta.
"Function calculates sigmoid function (g) for every sample. With g it calculates part of Hessian matrix and gradient, aggregates and output them. It also calculates J function which is needed for checking the convergence of parameters theta."
77
false
romanorac/discomll
map_fit
20,257
LDU_FT/pschmitt/pykeepass/compute_transformed
LDU_FT
[ "<BEGIN>\n## `compute_transformed`", "Compute transformed key for opening database\n<END>", "<BEGIN>\n## `compute_header_hmac_hash`", "Compute HMAC-SHA256 hash of header.\n Used to prevent header tampering.\n<END>", "<BEGIN>\n## `compute_payload_block_hash`", "Compute hash of each payload block.\n U...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_transformed 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 compute_transformed 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...
Compute transformed key for opening database
"Compute transformed key for opening database"
46
false
pschmitt/pykeepass
compute_transformed
20,258
LDU_FT/escaped/django-video-encoding/_get_video_info
LDU_FT
[ "<BEGIN>\n## `_get_video_info`", "Returns basic information about the video as dictionary.\n<END>", "<BEGIN>\n## `encode`", "Encodes a video to a specified file. All encoder specific options\n are passed in using `params`.\n<END>", "<BEGIN>\n## `get_media_info`", "Returns information about the give...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_video_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_video_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Returns basic information about the video as dictionary.
"Returns basic information about the video as dictionary."
13
false
escaped/django-video-encoding
_get_video_info
20,259
LDU_FT/geronimp/graftM/read
LDU_FT
[ "<BEGIN>\n## `_write_consensus_strings`", "Writes the taxonomy of each leaf to a file. If the leaf has no\n taxonomy, a taxonomy string will be created using the annotations\n provided to the ancestor nodes of that leaf (meaning, it will be\n decorated).", " Parameters\n -----...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API. Each 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 read API. Each 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...
Parse in a taxonomy from the given I/O. Parameters ---------- input_taxonomy_io: io an open io object that is iterable. This stream is neither opened nor closed by this method Returns ------- A GreenGenesTaxonomy instance with the taxonomy parsed...
"Parse in a taxonomy from the given I/O.\n\n Parameters\n ----------\n input_taxonomy_io: io\n an open io object that is iterable. This stream is neither opened\n nor closed by this method\n\n Returns\n -------\n A GreenGenesTaxonomy instance with the taxo...
334
false
geronimp/graftM
read
20,260
LDU_FT/hugapi/hug/cache
LDU_FT
[ "<BEGIN>\n## `arguments`", "Returns the name of all arguments a function takes\n<END>", "<BEGIN>\n## `generate_accepted_kwargs`", "Dynamically creates a function that when called with dictionary of arguments will produce a kwarg that's\n compatible with the supplied function\n<END>", "<BEGIN>\n## `aut...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cache API. Each 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 cache API. Each 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...
Convenience method for quickly adding cache header to route
"Convenience method for quickly adding cache header to route"
259
false
hugapi/hug
cache
20,261
LDU_FT/mjirik/sed3/show_slices
LDU_FT
[ "<BEGIN>\n## `show_slices`", "Show slices as tiled image\r", " :param data3d: Input data\r\n :param contour: Data for contouring\r\n :param seeds: Seed data\r\n :param axis: Axis for sliceing\r\n :param slice_step: Show each \"slice_step\"-th slice, can be float\r\n :param shape: tuple(vertica...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the show_slices API. 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 show_slices API. 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...
Show slices as tiled image :param data3d: Input data :param contour: Data for contouring :param seeds: Seed data :param axis: Axis for sliceing :param slice_step: Show each "slice_step"-th slice, can be float :param shape: tuple(vertical_tiles_number, horisontal_tiles_number), set shape ...
"Show slices as tiled image\r\n\r\n :param data3d: Input data\r\n :param contour: Data for contouring\r\n :param seeds: Seed data\r\n :param axis: Axis for sliceing\r\n :param slice_step: Show each \"slice_step\"-th slice, can be float\r\n :param shape: tuple(vertical_tiles_number, horisontal_tiles_nu...
30
false
mjirik/sed3
show_slices
20,262
LDU_FT/nickpandolfi/Cyther/_get_encodings
LDU_FT
[ "<BEGIN>\n## `get_content`", "Finds the 'content' tag from a 'pattern' in the provided 'string'\n<END>", "<BEGIN>\n## `extract`", "Used to extract a given regex pattern from a string, given several options\n<END>", "<BEGIN>\n## `extractRuntime`", "Used to find the correct static lib name to pass to gcc\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_encodings API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_encodings API. 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...
Just a simple function to return the system encoding (defaults to utf-8)
"Just a simple function to return the system encoding (defaults to utf-8)"
131
false
nickpandolfi/Cyther
_get_encodings
20,263
LDU_FT/nion-software/nionswift-io/_seek
LDU_FT
[ "<BEGIN>\n## `imagedatadict_to_ndarray`", "Converts the ImageData dictionary, imdict, to an nd image.\n<END>", "<BEGIN>\n## `ndarray_to_imagedatadict`", "Convert the numpy array nparr into a suitable ImageList entry dictionary.\n Returns a dictionary with the appropriate Data, DataType, PixelDepth\n to ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _seek API. Each 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 _seek API. Each 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...
Seek file to offset of page specified by index.
"Seek file to offset of page specified by index."
438
false
nion-software/nionswift-io
_seek
20,264
LDU_FT/zyga/python-glibc/register
LDU_FT
[ "<BEGIN>\n## `_get_fd`", "Get a descriptor out of a file object.", " :param fileobj:\n An integer (existing descriptor) or any object having the `fileno()`\n method.\n :raises ValueError:\n if the descriptor cannot be obtained or if the descriptor is invalid\n :returns:\n fi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API. 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 register API. 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...
Register a new descriptor :param fd: The descriptor to register. :param eventmask: Bit-mask of events that will be monitored. By default EPOLLIN, EPOLLOUT and EPOLLPRI are used. Note that EPOLLHUP is implicit and doesn't need to be provided. :rais...
"Register a new descriptor\n\n :param fd:\n The descriptor to register.\n :param eventmask:\n Bit-mask of events that will be monitored. By default EPOLLIN,\n EPOLLOUT and EPOLLPRI are used. Note that EPOLLHUP is implicit and\n doesn't need to be provided.\n ...
106
false
zyga/python-glibc
register
20,265
LDU_FT/klmitch/bark/_get_conversion
LDU_FT
[ "<BEGIN>\n## `pop_state`", "Pops off the most recent state.", " :param idx: If provided, specifies the index at which the next\n string begins.\n<END>", "<BEGIN>\n## `add_text`", "Adds the text from string beginning to the specified ending\n index to the format.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_conversion API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_conversion API. 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...
Return a conversion given its character. :param conv_chr: The letter of the conversion, e.g., "a" for AddressConversion, etc. :param modifier: The format modifier applied to this conversion. :returns: An instance of bark.conversions.Conversion.
"Return a conversion given its character.\n\n :param conv_chr: The letter of the conversion, e.g., \"a\" for\n AddressConversion, etc.\n :param modifier: The format modifier applied to this\n conversion.\n\n :returns: An instance of bark.conversions.C...
160
false
klmitch/bark
_get_conversion
20,266
LDU_FT/secnot/rectpack/_fits_surface
LDU_FT
[ "<BEGIN>\n## `_add_section`", "Adds a new section to the free section list, but before that and if \n section merge is enabled, tries to join the rectangle with all existing \n sections, if successful the resulting section is again merged with the \n remaining sections until the operation fai...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _fits_surface API. 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 _fits_surface API. 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...
Test surface is big enough to place a rectangle Arguments: width (int, float): Rectangle width height (int, float): Rectangle height Returns: boolean: True if it could be placed, False otherwise
"Test surface is big enough to place a rectangle\n\n Arguments:\n width (int, float): Rectangle width\n height (int, float): Rectangle height\n\n Returns:\n boolean: True if it could be placed, False otherwise"
103
false
secnot/rectpack
_fits_surface
20,267
LDU_FT/StanfordVL/robosuite/_check_success
LDU_FT
[ "<BEGIN>\n## `clear_objects`", "Clears objects with name @obj out of the task space. This is useful\n for supporting task modes with single types of objects, as in\n @self.single_object_mode without changing the model definition.\n<END>", "<BEGIN>\n## `staged_rewards`", "Returns staged rewards b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_success API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_success API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Returns True if task has been completed.
"Returns True if task has been completed."
354
false
StanfordVL/robosuite
_check_success
20,268
LDU_FT/jilljenn/tryalgo/_dinic_step
LDU_FT
[ "<BEGIN>\n## `three_partition`", "partition a set of integers in 3 parts of same total value", " :param x: table of non negative values\n :returns: triplet of the integers encoding the sets, or None otherwise\n :complexity: :math:`O(2^{2n})`\n<END>", "<BEGIN>\n## `freivalds`", "Tests matrix product...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _dinic_step API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _dinic_step API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
tenter de pousser le plus de flot de u à target, sans dépasser limit
"tenter de pousser le plus de flot de u à target, sans dépasser limit"
423
false
jilljenn/tryalgo
_dinic_step
20,269
LDU_FT/astropy/photutils/gaussian1d_moments
LDU_FT
[ "<BEGIN>\n## `_move_tuple_axes_first`", "Bottleneck can only take integer axis, not tuple, so this function\n takes all the axes to be operated on and combines them into the\n first dimension of the array so that we can then use axis=0\n<END>", "<BEGIN>\n## `_nanmean`", "Bottleneck nanmean function that...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gaussian1d_moments 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 gaussian1d_moments 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...
Estimate 1D Gaussian parameters from the moments of 1D data. This function can be useful for providing initial parameter values when fitting a 1D Gaussian to the ``data``. Parameters ---------- data : array_like (1D) The 1D array. mask : array_like (1D bool), optional A boolea...
"Estimate 1D Gaussian parameters from the moments of 1D data.\n\n This function can be useful for providing initial parameter values\n when fitting a 1D Gaussian to the ``data``.\n\n Parameters\n ----------\n data : array_like (1D)\n The 1D array.\n\n mask : array_like (1D bool), optional\n ...
1,397
true
astropy/photutils
gaussian1d_moments
20,270
LDU_FT/mozilla/funfactory/get_language
LDU_FT
[ "<BEGIN>\n## `clone_repo`", "Clone the Playdoh repo into a custom path.\n<END>", "<BEGIN>\n## `init_pkg`", "Initializes a custom named package module.", " This works by replacing all instances of 'project' with a custom module\n name.\n<END>", "<BEGIN>\n## `create_settings`", "Creates a local sett...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_language API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_language API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Return a locale code we support on the site using the user's Accept-Language header to determine which is best. This mostly follows the RFCs but read bug 439568 for details.
"Return a locale code we support on the site using the\n user's Accept-Language header to determine which is best. This\n mostly follows the RFCs but read bug 439568 for details."
52
false
mozilla/funfactory
get_language
20,271
LDU_FT/gunthercox/mathparse/to_postfix
LDU_FT
[ "<BEGIN>\n## `is_symbol`", "Return true if the string is a mathematical symbol.\n<END>", "<BEGIN>\n## `find_word_groups`", "Find matches for words in the format \"3 thousand 6 hundred 2\".\n The words parameter should be the list of words to check for\n such as \"hundred\".\n<END>", "<BEGIN>\n## `repl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_postfix API. 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 to_postfix API. 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...
Convert a list of evaluatable tokens to postfix format.
"Convert a list of evaluatable tokens to postfix format."
20
false
gunthercox/mathparse
to_postfix
20,272